]> Zhao Yanbai Git Server - minix.git/commitdiff
getifaddrs: add un-namespaced alias 42/242/1
authorBen Gras <ben@minix3.org>
Thu, 24 Jan 2013 21:52:48 +0000 (21:52 +0000)
committerBen Gras <ben@minix3.org>
Thu, 24 Jan 2013 21:57:15 +0000 (21:57 +0000)
. needed for security/heimdal, needed for git

Change-Id: I8638945dffd0abffd487c47281ad7616da1b70db

lib/libc/net/minix/getifaddrs.c

index 62caae058dd8f2da1c1721f021c168596f1d4ee1..a1ccae88af8f4ca11a924cb969d69e031f7bf0eb 100644 (file)
 #include <stdlib.h>
 #include <ifaddrs.h>
 
+#if defined(__weak_alias)
+__weak_alias(getifaddrs,_getifaddrs)
+__weak_alias(freeifaddrs,_freeifaddrs)
+#endif
+
 int
 getifaddrs(struct ifaddrs **ifap)
 {