diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-05-24 11:42:53 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-05-24 11:42:53 +0000 |
commit | 9d9a376dd296d4eed407c43a453ab5abf249e410 (patch) | |
tree | e5f04efeb3f3c81f6a8e138e0aff8671dcc31077 /gl | |
parent | 15d2a5e54c7694aa7a4eeef3a6eebd6855874f07 (diff) | |
download | gnutls-9d9a376dd296d4eed407c43a453ab5abf249e410.tar.gz |
Update.
Diffstat (limited to 'gl')
-rw-r--r-- | gl/gnulib.mk | 12 | ||||
-rw-r--r-- | gl/netinet_in_.h | 7 | ||||
-rw-r--r-- | gl/string_.h | 10 | ||||
-rw-r--r-- | gl/sys_socket_.h | 7 |
4 files changed, 25 insertions, 11 deletions
diff --git a/gl/gnulib.mk b/gl/gnulib.mk index 0a3434b8d9..c3bca97574 100644 --- a/gl/gnulib.mk +++ b/gl/gnulib.mk @@ -22,6 +22,15 @@ libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS) EXTRA_libgnu_la_SOURCES = libgnu_la_LDFLAGS = $(AM_LDFLAGS) +## begin gnulib module absolute-header + +# Use this preprocessor expression to decide whether #include_next works. +# Do not rely on a 'configure'-time test for this, since the expression +# might appear in an installed header, which is used by some other compiler. +HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) + +## end gnulib module absolute-header + ## begin gnulib module arpa_inet BUILT_SOURCES += $(ARPA_INET_H) @@ -117,6 +126,7 @@ netinet/in.h: rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''ABSOLUTE_NETINET_IN_H''@|$(ABSOLUTE_NETINET_IN_H)|g' \ + -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \ -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \ < $(srcdir)/netinet_in_.h; \ } > $@-t @@ -180,6 +190,7 @@ string.h: string_.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's|@''ABSOLUTE_STRING_H''@|$(ABSOLUTE_STRING_H)|g' \ + -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \ -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \ @@ -242,6 +253,7 @@ sys/socket.h: sys_socket_.h @MKDIR_P@ sys { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''ABSOLUTE_SYS_SOCKET_H''@|$(ABSOLUTE_SYS_SOCKET_H)|g' \ + -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \ -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \ -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ diff --git a/gl/netinet_in_.h b/gl/netinet_in_.h index 4a53605f5d..d46ec78e9b 100644 --- a/gl/netinet_in_.h +++ b/gl/netinet_in_.h @@ -24,8 +24,11 @@ <sys/types.h>. */ # include <sys/types.h> -# include @ABSOLUTE_NETINET_IN_H@ - +# if @HAVE_INCLUDE_NEXT@ +# include_next <netinet/in.h> +# else +# include @ABSOLUTE_NETINET_IN_H@ +# endif #else /* A platform that lacks <netinet/in.h>. */ diff --git a/gl/string_.h b/gl/string_.h index 95888635c2..43801e823e 100644 --- a/gl/string_.h +++ b/gl/string_.h @@ -16,20 +16,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#if defined __DECC && __DECC_VER >= 60000000 +#if @HAVE_INCLUDE_NEXT@ # include_next <string.h> #endif #ifndef _GL_STRING_H #define _GL_STRING_H -/* This #pragma avoids a warning with "gcc -Wmissing-prototypes" on some - mingw systems. */ -#ifdef __GNUC__ -# pragma GCC system_header -#endif - -#if !(defined __DECC && __DECC_VER >= 60000000) +#if ! @HAVE_INCLUDE_NEXT@ # include @ABSOLUTE_STRING_H@ #endif diff --git a/gl/sys_socket_.h b/gl/sys_socket_.h index 623c98c2f1..7ad5bca09a 100644 --- a/gl/sys_socket_.h +++ b/gl/sys_socket_.h @@ -30,7 +30,12 @@ <sys/types.h>. */ # include <sys/types.h> -# include @ABSOLUTE_SYS_SOCKET_H@ + +# if @HAVE_INCLUDE_NEXT@ +# include_next <sys/socket.h> +# else +# include @ABSOLUTE_SYS_SOCKET_H@ +# endif #else |