]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Include a defintion for getallifaddrs from libsocket_priv.h
authorRoy Marples <roy@marples.name>
Tue, 17 Jan 2017 20:02:31 +0000 (20:02 +0000)
committerRoy Marples <roy@marples.name>
Tue, 17 Jan 2017 20:02:31 +0000 (20:02 +0000)
because that header is not available on all Illumos distros
but should be defined in all supported libc's.

if-sun.c

index 55d508896e36925942fd0f5e59893a066b938473..097d7f00bcadcc7376654a109b11c875d0e80d5f 100644 (file)
--- a/if-sun.c
+++ b/if-sun.c
 
 #include <inet/ip.h>
 
-/* private interface we can hook into to get
- * a better getifaddrs(3). */
-#include <libsocket_priv.h>
-
 #include <net/if_dl.h>
 #include <net/if_types.h>
 
 #include <sys/tihdr.h>
 #include <sys/utsname.h>
 
+/* Private libsocket interface we can hook into to get
+ * a better getifaddrs(3).
+ * From libsocket_priv.h, which is not always distributed so is here. */
+extern int getallifaddrs(sa_family_t, struct ifaddrs **, int64_t);
+
 #include "config.h"
 #include "common.h"
 #include "dhcp.h"