diff --git a/lib/setup.h b/lib/setup.h
index 928eb34c7822b0bd2d142105e7edb4e0ebb2a7e4..3ea2e84e7176049712cf434c7b858fa090e17185 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -276,7 +276,7 @@ typedef int curl_socket_t;
 
 #define LIBIDN_REQUIRED_VERSION "0.4.1"
 
-#ifdef __UCLIBC_MAJOR__
+#ifdef __UCLIBC__
 #define HAVE_INET_NTOA_R_2_ARGS 1
 #endif