aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wsutil/inet_v6defs.h9
-rw-r--r--wsutil/libwsutil.def3
2 files changed, 7 insertions, 5 deletions
diff --git a/wsutil/inet_v6defs.h b/wsutil/inet_v6defs.h
index f02faf0f7e..c6cfa8fdec 100644
--- a/wsutil/inet_v6defs.h
+++ b/wsutil/inet_v6defs.h
@@ -29,13 +29,14 @@
* don't have it.
*/
-/* Windows does not have inet_pton() until Vista. In order to allow binaries
- * compiled on Vista or later to work on pre-Vista Windows (without resorting
- * to fragile link ordering tricks), we rename our inet_pton() to
- * ws_inet_pton().
+/* Windows does not have inet_pton() and inet_pton() until Vista. In order
+ * to allow binaries compiled on Vista or later to work on pre-Vista Windows
+ * (without resorting to fragile link ordering tricks), we give our versions
+ * of those functions Wireshark-specific names.
*/
#ifdef WIN32
#define inet_pton ws_inet_pton
+#define inet_ntop ws_inet_ntop
#endif
extern int inet_pton(int af, const char *src, void *dst);
diff --git a/wsutil/libwsutil.def b/wsutil/libwsutil.def
index 7bb5ae2aaf..1dff793519 100644
--- a/wsutil/libwsutil.def
+++ b/wsutil/libwsutil.def
@@ -26,7 +26,8 @@ ws_module_open
inet_aton
; inet_ntop.c
-inet_ntop
+; Note: inet_v6defs.h renames this function for Windows (only)
+ws_inet_ntop
; inet_pton.c
; Note: inet_v6defs.h renames this function for Windows (only)