CFLAGS += -DPACKAGE_VERSION="\"$(MAJOR).$(MINOR)\"" -DPREFIX="\"$(PREFIX)\"" -DMODULEDIR="\"$(MODULEDIR)\""
RM := rm -f
LN := ln -s
-XXD ?= xxd
+XXD ?= hexdump -v -e '/1 "0x%02X, " " "'
INSTALL := install
PYTHON := python
# Embed resources
daemon/engine.o: daemon/lua/sandbox.inc daemon/lua/config.inc
%.inc: %.lua
- @$(call quiet,XXD,$<) -i - < $< > $@
+ @$(call quiet,XXD,$<) $< > $@
# Dependencies
kresolved_DEPEND := $(libkresolve)
*/
#include <assert.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
#include "lib/nsrep.h"
#include "lib/defines.h"
MODTYPE := dynamiclib
else
PLATFORM := POSIX
- LDFLAGS += -pthread -ldl
+ LDFLAGS += -pthread
+ ifeq (,$(findstring BSD,$(UNAME)))
+ LDFLAGS += -ldl
+ endif
endif
endif