aboutsummaryrefslogtreecommitdiffstats
path: root/net/cryptcat
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-12-11 15:28:20 +0800
committeredwin <edwin@FreeBSD.org>2002-12-11 15:28:20 +0800
commitf9b9b6383d0fd6505c3ca50c274bac879c436322 (patch)
tree466066f3569195c3e011a939eb2222f425e8afae /net/cryptcat
parentafe244c6126fef075ce1c6e2d83d233980e806be (diff)
downloadfreebsd-ports-gnome-f9b9b6383d0fd6505c3ca50c274bac879c436322.tar.gz
freebsd-ports-gnome-f9b9b6383d0fd6505c3ca50c274bac879c436322.tar.zst
freebsd-ports-gnome-f9b9b6383d0fd6505c3ca50c274bac879c436322.zip
Fix build of net/cryptcat
PR: ports/44992 Submitted by: Maxim Maximov <mcsi@agava.com> Approved by: Roman Shterenzon <romanbsd@yahoo.com> (maintainer)
Diffstat (limited to 'net/cryptcat')
-rw-r--r--net/cryptcat/files/patch-netcat.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/cryptcat/files/patch-netcat.c b/net/cryptcat/files/patch-netcat.c
new file mode 100644
index 000000000000..fcdcaa9fc56b
--- /dev/null
+++ b/net/cryptcat/files/patch-netcat.c
@@ -0,0 +1,26 @@
+--- netcat.c.orig Wed Nov 6 13:42:04 2002
++++ netcat.c Wed Nov 6 13:47:27 2002
+@@ -45,9 +45,6 @@
+ #else
+ #include <malloc.h>
+ #endif
+-#ifdef HAVE_SELECT_H /* random SV variants need this */
+-#include <sys/select.h>
+-#endif
+
+ /* have to do this *before* including types.h. xxx: Linux still has it wrong */
+ #ifdef FD_SETSIZE /* should be in types.h, butcha never know. */
+@@ -55,6 +52,12 @@
+ #endif /* fd's, something is horribly wrong! */
+ #define FD_SETSIZE 16 /* <-- this'll give us a long anyways, wtf */
+ #include <sys/types.h> /* *now* do it. Sigh, this is broken */
++#ifdef __FreeBSD__
++#include <inttypes.h>
++#endif
++#ifdef HAVE_SELECT_H /* random SV variants need this */
++#include <sys/select.h>
++#endif
+
+ #ifdef HAVE_RANDOM /* aficionados of ?rand48() should realize */
+ #define SRAND srandom /* that this doesn't need *strong* random */
+