]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Cygwin32 compatibility. Initialize DNS
authorTed Lemon <source@isc.org>
Fri, 9 May 1997 08:27:56 +0000 (08:27 +0000)
committerTed Lemon <source@isc.org>
Fri, 9 May 1997 08:27:56 +0000 (08:27 +0000)
server/dhcpd.c

index 36c7d23b4557973d4e7779e59721bb9c2d1f75e9..bb7b58329f2bd05c21a2c54f2ee3979ba31875b0 100644 (file)
@@ -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");