freebsd-ports/lang/tcl85/files/patch-tclUnixPort.h
Pietro Cerutti 70e4722e89 - Add a couple of symlinks needed by databases/casstcl
- Bump PORTREVISION
- While at it, make makepatch-ify
2015-06-24 07:46:58 +00:00

13 lines
421 B
C

--- tclUnixPort.h.orig 2015-02-12 15:13:16 UTC
+++ tclUnixPort.h
@@ -625,7 +625,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