summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-11-02 00:10:11 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-11-02 00:10:11 +0000
commitb2e90ce918dbcfcee2c72883931ba603e9049e72 (patch)
treeb05a9fb8c46e83b57adb86c34b4eeb7b1e2d747a
parentcb7d65f23e1529221b7eb311d886ff5260952945 (diff)
* more small fixes for OpenBSD
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@922 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-compat-libdns_sd/dns_sd.h2
-rw-r--r--avahi-discover-standalone/main.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/avahi-compat-libdns_sd/dns_sd.h b/avahi-compat-libdns_sd/dns_sd.h
index fa18cce..0d8a583 100644
--- a/avahi-compat-libdns_sd/dns_sd.h
+++ b/avahi-compat-libdns_sd/dns_sd.h
@@ -39,7 +39,7 @@
#define DNSSD_API
#endif
-#if defined(__FreeBSD_version) && (__FreeBSD_version < 500000)
+#if defined(__FreeBSD_version) && (__FreeBSD_version < 500000) || defined(__OpenBSD__)
/* stdint.h does not exist on FreeBSD 4.x; its types are defined in sys/types.h instead */
#include <sys/types.h>
#elif defined(__sun__)
diff --git a/avahi-discover-standalone/main.c b/avahi-discover-standalone/main.c
index e77a007..90c74f3 100644
--- a/avahi-discover-standalone/main.c
+++ b/avahi-discover-standalone/main.c
@@ -25,6 +25,7 @@
#include <sys/ioctl.h>
#include <string.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <unistd.h>