aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_ntop.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/inet_ntop.h')
-rw-r--r--lib/inet_ntop.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h
index 12165cd1b..54d64bd19 100644
--- a/lib/inet_ntop.h
+++ b/lib/inet_ntop.h
@@ -25,13 +25,13 @@
#include "setup.h"
+char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size);
+
#ifdef HAVE_INET_NTOP
-#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,size)
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
-#else
-char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size);
+#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,size)
#endif
#endif /* __INET_NTOP_H */