1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/net/gnetcat/files/patch-src-udphelper.c
Pav Lucistnik 321e5c8279 Add gnetcat, a GPL'ed reimplementation of netcat.
PR:		ports/61262
Submitted by:	Liam Foy <liamfoy@sepulcrum.org>
2004-01-12 22:00:06 +00:00

18 lines
590 B
C

--- 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