diff -ru nc/Makefile nc-patched/Makefile --- nc/Makefile Wed Mar 20 04:16:06 1996 +++ nc-patched/Makefile Thu Sep 20 13:53:32 2001 @@ -109,6 +109,10 @@ next: make -e $(ALL) $(MFLAGS) XFLAGS='-DNEXT' STATIC=-Bstatic +# Darwin / Mac OS X: Modernized NeXT, no fully static linking, no stripping +darwin: + make -e $(ALL) $(MFLAGS) LD='$(CC)' XFLAGS='-DNEXT' STATIC= + # start with this for a new architecture, and see what breaks. generic: make -e $(ALL) $(MFLAGS) XFLAGS='-DGENERIC' STATIC= diff -ru nc/netcat.c nc-patched/netcat.c --- nc/netcat.c Thu Mar 21 01:38:04 1996 +++ nc-patched/netcat.c Thu Sep 20 13:44:03 2001 @@ -40,9 +40,6 @@ #else #include #endif -#ifdef HAVE_SELECT_H /* random SV variants need this */ -#include -#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. */ @@ -50,6 +47,10 @@ #endif /* fd's, something is horribly wrong! */ #define FD_SETSIZE 16 /* <-- this'll give us a long anyways, wtf */ #include /* *now* do it. Sigh, this is broken */ + +#ifdef HAVE_SELECT_H /* random SV variants need this */ +#include +#endif #ifdef HAVE_RANDOM /* aficionados of ?rand48() should realize */ #define SRAND srandom /* that this doesn't need *strong* random */