summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/netsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/netsock.c b/main/netsock.c
index c11f14a89..d16cf113f 100644
--- a/main/netsock.c
+++ b/main/netsock.c
@@ -33,7 +33,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#ifndef __linux__
+#if !defined (__linux__) && !defined (__GNU__)
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__) || defined(__GLIBC__)
#include <net/if_dl.h>
#endif