projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97ef7c2
)
ip: add OpenBSD support
author
Ali H. Fardan
<raiz@firemail.cc>
Sun, 29 Apr 2018 07:55:38 +0000
(10:55 +0300)
committer
Aaron Marcher
<me@drkhsh.at>
Sun, 29 Apr 2018 10:54:28 +0000
(12:54 +0200)
ip.c already works on OpenBSD, it's just missing some headers:
components/ip.c
patch
|
blob
|
history
diff --git
a/components/ip.c
b/components/ip.c
index 686344b701175f66d94c6e0510a497b1ad14472f..422b4486f7bad0a87f91fbcc1172382836580ddb 100644
(file)
--- a/
components/ip.c
+++ b/
components/ip.c
@@
-1,5
+1,9
@@
/* See LICENSE file for copyright and license details. */
-#if defined(__linux__)
+#if defined(__OpenBSD__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
+
#include <errno.h>
#include <ifaddrs.h>
#include <netdb.h>
@@
-69,4
+73,3
@@
ipv6(const char *iface)
return NULL;
}
-#endif