diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2002-12-11 07:28:20 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2002-12-11 07:28:20 +0000 |
commit | ab566ff51e3dbdbaee53629647dbdc854f809cb0 (patch) | |
tree | b60048d18579f988b81387946e81a95a19f1acd0 /net/cryptcat | |
parent | 97a55fa354ee7de81e7218b46843881129d427a1 (diff) | |
download | ports-ab566ff51e3dbdbaee53629647dbdc854f809cb0.tar.gz ports-ab566ff51e3dbdbaee53629647dbdc854f809cb0.zip |
Notes
Diffstat (limited to 'net/cryptcat')
-rw-r--r-- | net/cryptcat/files/patch-netcat.c | 26 |
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 */ + |