gnunet-helper-exit: check for linux-specific define on linux.
authorng0 <ng0@n0.is>
Sat, 23 Nov 2019 11:08:55 +0000 (11:08 +0000)
committerng0 <ng0@n0.is>
Sat, 23 Nov 2019 11:08:55 +0000 (11:08 +0000)
src/exit/gnunet-helper-exit.c

index 9d20a0c50c942fd618217766d392025e58cd64f8..8fd8bedaaf8b938c5f9539f68cdc221824d969dc 100644 (file)
@@ -85,9 +85,9 @@ static const char *sbin_sysctl;
 static const char *sbin_iptables;
 
 
-#ifndef _LINUX_IN6_H
+#if !defined(_LINUX_IN6_H) && defined(__linux__)
 /**
- * This is in linux/include/net/ipv6.h, but not always exported...
+ * This is in linux/include/net/ipv6.h, but not always exported.
  */
 struct in6_ifreq
 {