Commit 21c59bb0 authored by Michael Ott's avatar Michael Ott
Browse files

Modifications to make it compile under Linux

parent c60a547f
......@@ -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 %lld bytes...\n", len);
printf("Sent %ld bytes...\n", len);
}
/* Free buffer */
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment