aboutsummaryrefslogtreecommitdiffstats
path: root/net/gnetcat/files/patch-src-udphelper.c
blob: 5adbf9d0cb376f36c67a29f6aac68bc889eb6458 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/udphelper.c.orig    Mon Jan 12 19:18:26 2004
+++ src/udphelper.c Mon Jan 12 19:19:22 2004
@@ -45,10 +45,10 @@
 #endif
 
 #if !defined(SIOCGLIFADDR) || !defined(SIOCGLIFFLAGS)
-/* FIXME The following warning occurs on FreeBSD:
-    udphelper.c:48: warning: `SIOCGLIFADDR' redefined
-    /usr/include/sys/sockio.h:78: warning: this is the location of the previous definition
- */
+/* Temp fix - suggested by author */
+#if defined(SIOCGLIFADDR)
+#undef SIOCGLIFADDR
+#endif
 # define SIOCGLIFADDR SIOCGIFADDR
 # define SIOCGLIFFLAGS SIOCGIFFLAGS
 # define SIOCGLIFDSTADDR SIOCGIFDSTADDR