]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile without INET.
authorRoy Marples <roy@marples.name>
Sat, 12 Aug 2017 08:18:50 +0000 (09:18 +0100)
committerRoy Marples <roy@marples.name>
Sat, 12 Aug 2017 08:18:50 +0000 (09:18 +0100)
src/dhcp-common.c

index bf8e87a4434d806118133abc0995c269b23f0a02..5d8677977b7f678bf46c1b5d97bd42fece0c6692 100644 (file)
@@ -669,7 +669,9 @@ print_option(char *s, size_t len, const struct dhcp_opt *opt,
        struct in_addr addr;
        ssize_t bytes = 0, sl;
        size_t l;
+#ifdef INET
        char *tmp;
+#endif
 
        if (opt->type & OT_RFC1035) {
                sl = decode_rfc1035(s, len, data, dl);