fix
This commit is contained in:
parent
a01d408bed
commit
19e3bc6d24
@ -6,19 +6,19 @@ sink20169.c \
|
|||||||
logging.c
|
logging.c
|
||||||
|
|
||||||
|
|
||||||
OS := $(shell uname -s)
|
|
||||||
|
|
||||||
C_INCLUDES = \
|
C_INCLUDES = \
|
||||||
-I. \
|
-I. \
|
||||||
-I../cube/User/Inc
|
-I../cube/User/Inc
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = $(C_INCLUDES) -Wall -Werror -std=c99 -DOS=$(OS)
|
CFLAGS = $(C_INCLUDES) -Wall -Werror -std=c99
|
||||||
LDFLAGS = -lconfig -lcurl
|
LDFLAGS = -lconfig -lcurl
|
||||||
TARGET = sink20169
|
TARGET = sink20169
|
||||||
|
|
||||||
ifeq ($(OS),OpenBSD)
|
|
||||||
CFLAGS += -I/usr/local/include
|
UNAME_S := $(shell uname -s)
|
||||||
|
ifeq ($(UNAME_S),OpenBSD)
|
||||||
|
CFLAGS += -I/usr/local/include -DOpenBSD=1
|
||||||
LDFLAGS += -L/usr/local/lib
|
LDFLAGS += -L/usr/local/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ int forwardMinuteBuffer(t_forwarderHandle *handle, t_minuteBuffer *buf) {
|
|||||||
char payload[256];
|
char payload[256];
|
||||||
int res = snprintf(payload, sizeof(payload),
|
int res = snprintf(payload, sizeof(payload),
|
||||||
"%s,valid=1,location=%s,host=%s freq=%d.%03d"
|
"%s,valid=1,location=%s,host=%s freq=%d.%03d"
|
||||||
#if OS = OpenBSD
|
#ifdef OpenBSD
|
||||||
" %llu"
|
" %llu"
|
||||||
#else
|
#else
|
||||||
" %lu"
|
" %lu"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user