summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-06-16 20:40:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-06-16 20:40:38 (GMT)
commit8f4454b9bb3a655bc7d1e5dded976b62660ef2a2 (patch)
treea652f2e4955797984645b8c4439df3c5027824ee /unix
parentaadd5bae2d8f64697985bd872dd287d8cc0fcce6 (diff)
parentec41119a5a5226dc4ddff30c03770f0847cbd401 (diff)
downloadtcl-8f4454b9bb3a655bc7d1e5dded976b62660ef2a2.zip
tcl-8f4454b9bb3a655bc7d1e5dded976b62660ef2a2.tar.gz
tcl-8f4454b9bb3a655bc7d1e5dded976b62660ef2a2.tar.bz2
merge novem
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure11
-rw-r--r--unix/tcl.m410
-rw-r--r--unix/tclEpollNotfy.c2
-rw-r--r--unix/tclUnixSock.c6
4 files changed, 9 insertions, 20 deletions
diff --git a/unix/configure b/unix/configure
index 5ee7e01..6b9cedf 100755
--- a/unix/configure
+++ b/unix/configure
@@ -5085,9 +5085,7 @@ fi
PLAT_SRCS=""
LDAIX_SRC=""
if test "x${SHLIB_VERSION}" = x; then :
- SHLIB_VERSION=".1.0"
-else
- SHLIB_VERSION=".${SHLIB_VERSION}"
+ SHLIB_VERSION="1.0"
fi
case $system in
AIX-*)
@@ -9971,13 +9969,6 @@ $as_echo "#define USE_FIONBIO 1" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
$as_echo "FIONBIO" >&6; }
;;
- SunOS-4*)
-
-$as_echo "#define USE_FIONBIO 1" >>confdefs.h
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
-$as_echo "FIONBIO" >&6; }
- ;;
*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: O_NONBLOCK" >&5
$as_echo "O_NONBLOCK" >&6; }
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index e21cc20..45922e0 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -971,8 +971,8 @@ AC_DEFUN([SC_CONFIG_SYSTEM], [
# shared libraries. The value of the symbol defaults to
# "${LIBS}" if all of the dependent libraries should
# be specified when creating a shared library. If
-# dependent libraries should not be specified (as on
-# SunOS 4.x, where they cause the link to fail, or in
+# dependent libraries should not be specified (as on some
+# SunOS systems, where they cause the link to fail, or in
# general if Tcl and Tk aren't themselves shared
# libraries), then this symbol has an empty string
# as its value.
@@ -1098,7 +1098,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
PLAT_OBJS=""
PLAT_SRCS=""
LDAIX_SRC=""
- AS_IF([test "x${SHLIB_VERSION}" = x],[SHLIB_VERSION=".1.0"],[SHLIB_VERSION=".${SHLIB_VERSION}"])
+ AS_IF([test "x${SHLIB_VERSION}" = x], [SHLIB_VERSION="1.0"])
case $system in
AIX-*)
AS_IF([test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"], [
@@ -2222,10 +2222,6 @@ AC_DEFUN([SC_BLOCKING_STYLE], [
AC_DEFINE(USE_FIONBIO, 1, [Should we use FIONBIO?])
AC_MSG_RESULT([FIONBIO])
;;
- SunOS-4*)
- AC_DEFINE(USE_FIONBIO, 1, [Should we use FIONBIO?])
- AC_MSG_RESULT([FIONBIO])
- ;;
*)
AC_MSG_RESULT([O_NONBLOCK])
;;
diff --git a/unix/tclEpollNotfy.c b/unix/tclEpollNotfy.c
index 5ed5d5d..088f314 100644
--- a/unix/tclEpollNotfy.c
+++ b/unix/tclEpollNotfy.c
@@ -21,7 +21,9 @@
#include <fcntl.h>
#include <signal.h>
#include <sys/epoll.h>
+#ifdef HAVE_EVENTFD
#include <sys/eventfd.h>
+#endif /* HAVE_EVENTFD */
#include <sys/queue.h>
#include <unistd.h>
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index 2353f94..c0df035 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -730,6 +730,8 @@ TcpClose2Proc(
*/
#ifndef NEED_FAKE_RFC2553
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-aliasing"
static inline int
IPv6AddressNeedsNumericRendering(
struct in6_addr addr)
@@ -743,16 +745,14 @@ IPv6AddressNeedsNumericRendering(
* at least some versions of OSX.
*/
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wstrict-aliasing"
if (!IN6_IS_ADDR_V4MAPPED(&addr)) {
-#pragma GCC diagnostic pop
return 0;
}
return (addr.s6_addr[12] == 0 && addr.s6_addr[13] == 0
&& addr.s6_addr[14] == 0 && addr.s6_addr[15] == 0);
}
+#pragma GCC diagnostic pop
#endif /* NEED_FAKE_RFC2553 */
static void