From: Ted Lemon Date: Fri, 9 May 1997 08:27:56 +0000 (+0000) Subject: Cygwin32 compatibility. Initialize DNS X-Git-Tag: DHCP-970602~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e39d1019891d02572ee45257676edee0d873bc3;p=thirdparty%2Fdhcp.git Cygwin32 compatibility. Initialize DNS --- diff --git a/server/dhcpd.c b/server/dhcpd.c index 36c7d23b4..bb7b58329 100644 --- a/server/dhcpd.c +++ b/server/dhcpd.c @@ -42,7 +42,7 @@ #ifndef lint static char ocopyright[] = -"$Id: dhcpd.c,v 1.40 1997/03/06 18:41:36 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium."; +"$Id: dhcpd.c,v 1.41 1997/05/09 08:27:56 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium."; #endif static char copyright[] = @@ -102,8 +102,10 @@ int main (argc, argv, envp) #ifndef DEBUG #ifndef SYSLOG_4_2 +#ifndef __CYGWIN32__ /* XXX */ setlogmask (LOG_UPTO (LOG_INFO)); #endif +#endif #endif note (message); note (copyright); @@ -197,7 +199,9 @@ int main (argc, argv, envp) local_port = htons (67); else local_port = ent -> s_port; +#ifndef __CYGWIN32__ /* XXX */ endservent (); +#endif } remote_port = htons (ntohs (local_port) + 1); @@ -205,6 +209,9 @@ int main (argc, argv, envp) /* Get the current time... */ GET_TIME (&cur_time); + /* Initialize DNS support... */ + dns_startup (); + /* Read the dhcpd.conf file... */ if (!readconf ()) error ("Configuration file errors encountered -- exiting");