Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
21c59bb0
Commit
21c59bb0
authored
Jan 14, 2013
by
Michael Ott
Browse files
Modifications to make it compile under Linux
parent
c60a547f
Changes
2
Show whitespace changes
Inline
Side-by-side
FileSpewer/FileSpewer.cpp
View file @
21c59bb0
...
...
@@ -12,6 +12,7 @@
#include
<unistd.h>
#include
<sys/stat.h>
#include
<linux/limits.h>
#include
"Settings.h"
#include
"mosquitto.h"
...
...
@@ -114,7 +115,7 @@ void spew() {
fprintf
(
stderr
,
"Warning: cannot send message.
\n
"
);
}
else
{
printf
(
"Sent %
l
ld bytes...
\n
"
,
len
);
printf
(
"Sent %ld bytes...
\n
"
,
len
);
}
/* Free buffer */
...
...
FileSpewer/Makefile
View file @
21c59bb0
...
...
@@ -2,7 +2,7 @@ CXXFLAGS = -O2 -g -Wall -Werror -fmessage-length=0 -I../../mosquitto-1.1/lib/
OBJS
=
FileSpewer.o Settings.o
LIBS
=
-L
../../mosquitto-1.1/lib/
-lmosquitto
LIBS
=
-L
../../mosquitto-1.1/lib/
-lmosquitto
-lssl
-lcrypto
-pthread
TARGET
=
FileSpewer
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment