Getting dns daemon to compile on linux. (dont part of build yet)

git-svn-id: svn://10.0.0.236/trunk@58575 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dp%netscape.com 2000-01-25 07:54:46 +00:00
parent 9dc7b46cd1
commit e36a855c30
2 changed files with 7 additions and 4 deletions

View File

@ -34,5 +34,5 @@ SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=)
include $(topsrcdir)/config/rules.mk
DEFINES += -D"GETHOSTBYNAME_DELAY=5"
DEFINES += -D"GETHOSTBYNAME_DELAY=5" -DNO_SOCKS_NS_KLUDGE

View File

@ -55,7 +55,7 @@
#include <sys/un.h>
#include "unix_dns.h"
#if defined(AIX)
#if defined(AIX) || defined(__linux)
#include <sys/select.h> // for fd_set
#endif
@ -65,7 +65,10 @@
#include <resolv.h> // for res_init() and _res
#endif
#if !defined(__irix)
#if defined(__linux)
// Didn't find gettdtablehi() or gettdtablesize() on linux. Using FD_SETSIZE
#define getdtablehi() FD_SETSIZE
#elif !defined(__irix)
// looks like Irix is the only one that has getdtablehi()?
#define getdtablehi() getdtablesize()
@ -544,7 +547,7 @@ int main (int argc, char **argv)
if (!(strncmp (buffer, "shutdown:", 9)))
break;
char *name = index (buffer, ' ');
char *name = strchr ((const char *)buffer, ' ');
if (name && *name)
name++;