]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
add missing includes on openbsd 1357/head
authorAnton Lindqvist <anton@basename.se>
Sun, 5 Dec 2021 08:00:23 +0000 (09:00 +0100)
committerAnton Lindqvist <anton@basename.se>
Sun, 5 Dec 2021 08:00:23 +0000 (09:00 +0100)
common.c

index 866222c22c22aa170e737d146c78f5b5633dbade..feec44ad5af2eed2d94f73765410106c59d9529e 100644 (file)
--- a/common.c
+++ b/common.c
@@ -35,6 +35,7 @@
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <inttypes.h> // PRIdPTR
 #include <libgen.h>
 #include <memory.h>
 #include <poll.h>
@@ -54,7 +55,7 @@
 #include <netpacket/packet.h>
 #endif
 
-#ifdef COMPILE_FOR_FREEBSD
+#ifdef COMPILE_FOR_BSD
 #include <netinet/in.h>
 #include <net/if_types.h>
 #include <net/if_dl.h>