From 9059d5da399295824cda8ece04eea5734338af7c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 6 Mar 2009 01:51:34 +0000 Subject: [PATCH] mmm, actually allow HAVE_BIND on all systems and use resolv.h on linux systems --- netcat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/netcat.c b/netcat.c index 8d84d2d..c23e5d4 100644 --- a/netcat.c +++ b/netcat.c @@ -31,7 +31,7 @@ /* conditional includes -- a very messy section which you may have to dink for your own architecture [and please send diffs...]: */ /* #undef _POSIX_SOURCE */ /* might need this for something? */ -/* #define HAVE_BIND */ /* ASSUMPTION -- seems to work everywhere! */ +#define HAVE_BIND /* ASSUMPTION -- seems to work everywhere! */ #define HAVE_HELP /* undefine if you dont want the help text */ /* #define ANAL */ /* if you want case-sensitive DNS matching */ @@ -46,6 +46,9 @@ #ifdef HAVE_TIME_H #include #endif +#ifdef LINUX +#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. */