This commit is contained in:
Wolfgang Hottgenroth 2021-02-11 10:48:21 +01:00
parent a01d408bed
commit 19e3bc6d24
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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"