ports/net/cryptcat/files/patch-netcat.c
Dmitry Marakasov 7a046131cb - Switch to USES=tar
- Switch to options helpers
- Regenerate patches with `make makepatch`
- Cleanup pkg-descr
2016-08-07 09:01:03 +00:00

25 lines
846 B
C

--- netcat.c.orig 2005-10-18 17:42:05 UTC
+++ netcat.c
@@ -48,9 +48,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. */
@@ -58,6 +55,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 */