freebsd-ports/devel/strace/files/patch-sock.c
Philip M. Gollucci 2cc66472a4 Update to 4.5.18
Still i386 only

PR:             ports/129019
Submitted by:   Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
Approved by:    araujo (mentor, implicit)
2008-12-25 14:44:06 +00:00

39 lines
927 B
C

--- sock.c.orig 2007-05-24 14:33:11.000000000 +0800
+++ sock.c 2008-11-21 00:51:02.000000000 +0800
@@ -45,7 +45,9 @@
#include <ioctls.h>
#endif
#endif
+#include <sys/socket.h>
#include <net/if.h>
+#include <netinet/in.h>
extern const struct xlat addrfams[];
@@ -55,16 +57,26 @@
{ IFF_DEBUG, "IFF_DEBUG" },
{ IFF_LOOPBACK, "IFF_LOOPBACK" },
{ IFF_POINTOPOINT, "IFF_POINTOPOINT" },
+#ifdef IFF_NOTRAILERS
{ IFF_NOTRAILERS, "IFF_NOTRAILERS" },
+#endif
{ IFF_RUNNING, "IFF_RUNNING" },
{ IFF_NOARP, "IFF_NOARP" },
{ IFF_PROMISC, "IFF_PROMISC" },
{ IFF_ALLMULTI, "IFF_ALLMULTI" },
+#ifdef IFF_MASTER
{ IFF_MASTER, "IFF_MASTER" },
+#endif
+#ifdef IFF_SLAVE
{ IFF_SLAVE, "IFF_SLAVE" },
+#endif
{ IFF_MULTICAST, "IFF_MULTICAST" },
+#ifdef IFF_PORTSEL
{ IFF_PORTSEL, "IFF_PORTSEL" },
+#endif
+#ifdef IFF_AUTOMEDIA
{ IFF_AUTOMEDIA, "IFF_AUTOMEDIA" },
+#endif
{ 0, NULL }
};