Patch from vodz:
[oweals/busybox.git] / libbb / xgethostbyname2.c
index c66acfee10dbb428e5577c09fdb300b1b6f00e05..3a16ae4dcd26a782159accb1ae184718b266eade 100644 (file)
 #include "libbb.h"
 
 
-#if CONFIG_FEATURE_IPV6
+#ifdef CONFIG_FEATURE_IPV6
 struct hostent *xgethostbyname2(const char *name, int af)
 {
        struct hostent *retval;
 
        if ((retval = gethostbyname2(name, af)) == NULL)
-               herror_msg_and_die("%s", name);
+               bb_herror_msg_and_die("%s", name);
 
        return retval;
 }