]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
build: cleanup, fixes for FreeBSD
authorMarek Vavrusa <marek@vavrusa.com>
Thu, 25 Aug 2016 17:40:00 +0000 (10:40 -0700)
committerMarek Vavrusa <marek@vavrusa.com>
Thu, 25 Aug 2016 17:40:00 +0000 (10:40 -0700)
lib/nsrep.h
platform.mk

index 87a99eceedfdbaba6dfc5937878bbf05eee07ebf..a52b382e095ed25ab9bdd79b47c92bf53bcea339 100644 (file)
@@ -17,6 +17,7 @@
 #pragma once
 
 #include <netinet/in.h>
+#include <sys/socket.h>
 #include <libknot/dname.h>
 #include <limits.h>
 
index 4c7b7eb1981fa95fec067559bd7e7d6e3e46ffc8..26298e0c925a24c911b729d5e4f280d0b19e5b69 100644 (file)
@@ -49,7 +49,9 @@ else
             BINFLAGS += -pie
             LDFLAGS += -Wl,-z,relro,-z,now
         endif
-        LDFLAGS += -ldl
+        ifeq ($(UNAME),Linux)
+               LDFLAGS += -ldl
+        endif
     endif
 endif