ports/net/packetdrill/files/patch-symbols_freebsd.c
Hiroki Sato 680e72d7ec - Update to use freebsd-net/packetdrill repository instead of
Google's one.  It includes various fixes for FreeBSD and has been
  maintained by FreeBSD developers.

- Drop binaries for testing.

- Set maintainership to gnn@.

Discussed with:	tuexen and gnn
2016-10-11 03:12:03 +00:00

22 lines
1 KiB
C

--- symbols_freebsd.c.orig 2016-10-01 08:55:57 UTC
+++ symbols_freebsd.c
@@ -76,7 +76,9 @@ struct int_symbol platform_symbols_table
{ SO_LISTENQLEN, "SO_LISTENQLEN" },
{ SO_LISTENINCQLEN, "SO_LISTENINCQLEN" },
{ SO_SETFIB, "SO_SETFIB" },
+#ifdef SO_USER_COOKIE
{ SO_USER_COOKIE, "SO_USER_COOKIE" },
+#endif
/* /usr/include/netinet/sctp.h and /usr/include/netinet/sctp_uio.h */
{ SCTP_RTOINFO, "SCTP_RTOINFO" },
@@ -525,7 +527,9 @@ struct int_symbol platform_symbols_table
{ ENOLINK, "ENOLINK" },
{ EPROTO, "EPROTO" },
{ ENOTCAPABLE, "ENOTCAPABLE" },
+#ifdef ECAPMODE
{ ECAPMODE, "ECAPMODE" },
+#endif
/* Sentinel marking the end of the table. */
{ 0, NULL },