use USE_FEATURE_UDHCP_PORT instead of ifdef
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 15 Jun 2008 09:58:53 +0000 (09:58 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 15 Jun 2008 09:58:53 +0000 (09:58 -0000)
networking/udhcp/dhcpc.h

index 1ebccd40522b6eec5063ebd6f95382ba7ddc1dd5..04e320cf0de7be8a52a20243fe88b73f57fbfe33 100644 (file)
@@ -13,9 +13,7 @@ struct client_config_t {
        /* TODO: combine flag fields into single "unsigned opt" */
        /* (can be set directly to the result of getopt32) */
        char no_default_options;        /* Do not include default optins in request */
-#if ENABLE_FEATURE_UDHCP_PORT
-       uint16_t port;
-#endif
+       USE_FEATURE_UDHCP_PORT(uint16_t port;)
        int ifindex;                    /* Index number of the interface to use */
        uint8_t opt_mask[256 / 8];      /* Bitmask of options to send (-O option) */
        const char *interface;          /* The name of the interface to use */