summaryrefslogtreecommitdiff
path: root/libc/inet/if_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/if_index.c')
-rw-r--r--libc/inet/if_index.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/inet/if_index.c b/libc/inet/if_index.c
index fdb30f00a..ed46db231 100644
--- a/libc/inet/if_index.c
+++ b/libc/inet/if_index.c
@@ -35,11 +35,13 @@
#include "netlinkaccess.h"
-libc_hidden_proto(strndup)
libc_hidden_proto(strncpy)
libc_hidden_proto(strdup)
libc_hidden_proto(ioctl)
libc_hidden_proto(close)
+#if __ASSUME_NETLINK_SUPPORT
+libc_hidden_proto(strndup)
+#endif
extern int __opensock(void) attribute_hidden;