Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
uptime: Simplifiy and clean up
[slstatus.git]
/
components
/
ip.c
diff --git
a/components/ip.c
b/components/ip.c
index
686344b
..
b1f8a05
100644
(file)
--- a/
components/ip.c
+++ b/
components/ip.c
@@
-1,10
+1,13
@@
/* See LICENSE file for copyright and license details. */
/* See LICENSE file for copyright and license details. */
-#if defined(__linux__)
#include <errno.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
+#if defined(__OpenBSD__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
#include "../util.h"
#include "../util.h"
@@
-69,4
+72,3
@@
ipv6(const char *iface)
return NULL;
}
return NULL;
}
-#endif