ports/lang/tcl85/files/patch-tclUnixPort.h
2021-09-10 07:03:41 +00:00

13 lines
421 B
C

--- tclUnixPort.h.orig 2015-10-23 11:50:57 UTC
+++ tclUnixPort.h
@@ -622,7 +622,9 @@ typedef int socklen_t;
# include <pthread.h>
/* #define localtime(x) TclpLocaltime(x)
* #define gmtime(x) TclpGmtime(x) */
-# undef inet_ntoa
+# ifdef inet_ntoa
+# undef inet_ntoa
+# endif
# define inet_ntoa(x) TclpInetNtoa(x)
# ifdef HAVE_PTHREAD_ATTR_GET_NP
# define TclpPthreadGetAttrs pthread_attr_get_np