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