2005-10-30 14:21:29 +01:00
|
|
|
--- netcat.c.orig Tue Oct 18 19:42:05 2005
|
|
|
|
+++ netcat.c Sun Oct 30 07:47:37 2005
|
|
|
|
@@ -48,9 +48,6 @@
|
2002-12-11 08:28:20 +01:00
|
|
|
#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. */
|
2005-10-30 14:21:29 +01:00
|
|
|
@@ -58,6 +55,12 @@
|
2002-12-11 08:28:20 +01:00
|
|
|
#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
|
2005-10-30 14:21:29 +01:00
|
|
|
+#ifdef HAVE_SELECT_H /* random SV variants need this */
|
2002-12-11 08:28:20 +01:00
|
|
|
+#include <sys/select.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_RANDOM /* aficionados of ?rand48() should realize */
|
|
|
|
#define SRAND srandom /* that this doesn't need *strong* random */
|