]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Build fix for non-DHCPv6 compilation.
authorShane Kerr <shane@isc.org>
Tue, 8 Jan 2008 11:31:13 +0000 (11:31 +0000)
committerShane Kerr <shane@isc.org>
Tue, 8 Jan 2008 11:31:13 +0000 (11:31 +0000)
See RT ticket #17367 for more.

client/dhclient.c
server/dhcpd.c

index bd630ef9d470174c80d4a66b3b6e73b736aa2955..be8e2e44f254ea13a8d56067bcb35c5a508276ac 100644 (file)
@@ -100,7 +100,9 @@ main(int argc, char **argv) {
        int no_dhclient_db = 0;
        int no_dhclient_pid = 0;
        int no_dhclient_script = 0;
+#ifdef DHCPv6
        int local_family_set = 0;
+#endif /* DHCPv6 */
        char *s;
 
        /* Initialize client globals. */
index 8eda87274ba05734fb843fbba8e828d427eca7f8..e4ab86f21e0d3221d0ce33c54782c467f4acd5a5 100644 (file)
@@ -220,7 +220,9 @@ main(int argc, char **argv) {
        int no_dhcpd_conf = 0;
        int no_dhcpd_db = 0;
        int no_dhcpd_pid = 0;
+#ifdef DHCPv6
        int local_family_set = 0;
+#endif /* DHCPv6 */
 #if defined (TRACING)
        char *traceinfile = (char *)0;
        char *traceoutfile = (char *)0;