fix printf warning
[oweals/busybox.git] / libbb / interface.c
index fe2d0b4b2024dbe16ea8bd927915425a4643b82f..37a5f6405a668e17d2561c3c268d86cff3dac939 100644 (file)
@@ -986,7 +986,7 @@ static int if_readconf(void)
        return err;
 }
 
-char *get_name(char *name, char *p)
+static char *get_name(char *name, char *p)
 {
        /* Extract <name>[:<alias>] from nul-terminated p where p matches
           <name>[:<alias>]: after leading whitespace.
@@ -1374,7 +1374,7 @@ static struct hwtype loop_hwtype = {
 #if HAVE_HWETHER
 #include <net/if_arp.h>
 
-#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1
+#if (__GLIBC__ >=2 && __GLIBC_MINOR >= 1) || defined(_NEWLIB_VERSION)
 #include <net/ethernet.h>
 #else
 #include <linux/if_ether.h>