aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/inet_ntop.h6
-rw-r--r--lib/inet_pton.h6
2 files changed, 6 insertions, 6 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 */
diff --git a/lib/inet_pton.h b/lib/inet_pton.h
index 918a4dc1f..8331ba9dc 100644
--- a/lib/inet_pton.h
+++ b/lib/inet_pton.h
@@ -25,13 +25,13 @@
#include "setup.h"
+int Curl_inet_pton(int, const char *, void *);
+
#ifdef HAVE_INET_PTON
-#define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
-#else
-int Curl_inet_pton(int, const char *, void *);
+#define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
#endif
#endif /* __INET_PTON_H */