This website works better with JavaScript.
Home
Explore
Help
Sign In
rinri
/
slstatus
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
ip: add OpenBSD support
ip.c already works on OpenBSD, it's just missing some headers:
master
Ali H. Fardan
6 years ago
committed by
Aaron Marcher
parent
97ef7c2a1d
commit
7a9a9b7d76
1 changed files
with
5 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-2
components/ip.c
+ 5
- 2
components/ip.c
View File
@@ -1,5 +1,9 @@
/* See LICENSE file for copyright and license details. */
/* 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 <errno.h>
#include <ifaddrs.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <netdb.h>
@@ -69,4 +73,3 @@ ipv6(const char *iface)
return NULL;
return NULL;
}
}
#endif
Write
Preview
Loading…
Cancel
Save