mmm, actually allow HAVE_BIND on all systems and use resolv.h on linux systems
This commit is contained in:
parent
e89203975b
commit
9059d5da39
5
netcat.c
5
netcat.c
|
@ -31,7 +31,7 @@
|
||||||
/* conditional includes -- a very messy section which you may have to dink
|
/* conditional includes -- a very messy section which you may have to dink
|
||||||
for your own architecture [and please send diffs...]: */
|
for your own architecture [and please send diffs...]: */
|
||||||
/* #undef _POSIX_SOURCE */ /* might need this for something? */
|
/* #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 HAVE_HELP /* undefine if you dont want the help text */
|
||||||
/* #define ANAL */ /* if you want case-sensitive DNS matching */
|
/* #define ANAL */ /* if you want case-sensitive DNS matching */
|
||||||
|
|
||||||
|
@ -46,6 +46,9 @@
|
||||||
#ifdef HAVE_TIME_H
|
#ifdef HAVE_TIME_H
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef LINUX
|
||||||
|
#include <resolv.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* have to do this *before* including types.h. xxx: Linux still has it wrong */
|
/* 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. */
|
#ifdef FD_SETSIZE /* should be in types.h, butcha never know. */
|
||||||
|
|
Loading…
Reference in New Issue