summaryrefslogtreecommitdiff
path: root/gl/unistd.in.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-10-29 18:29:16 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-10-29 18:29:16 +0100
commitb9db38d7f5451c281f7ba345cc3f71e2240ba23a (patch)
tree685a8ac3cc59fcdc513382396c6bdb5627f0f80c /gl/unistd.in.h
parent3327d943c46afad17f64b5500663b80059d39aa3 (diff)
downloadgnutls-b9db38d7f5451c281f7ba345cc3f71e2240ba23a.tar.gz
updated gnulib.
Diffstat (limited to 'gl/unistd.in.h')
-rw-r--r--gl/unistd.in.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/gl/unistd.in.h b/gl/unistd.in.h
index 69c94cce90..d1a025b31d 100644
--- a/gl/unistd.in.h
+++ b/gl/unistd.in.h
@@ -116,6 +116,9 @@
# include <getopt.h>
#endif
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
_GL_INLINE_HEADER_BEGIN
#ifndef _GL_UNISTD_INLINE
# define _GL_UNISTD_INLINE _GL_INLINE
@@ -651,10 +654,19 @@ _GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - "
#if @GNULIB_GETDTABLESIZE@
/* Return the maximum number of file descriptors in the current process.
In POSIX, this is same as sysconf (_SC_OPEN_MAX). */
-# if !@HAVE_GETDTABLESIZE@
+# if @REPLACE_GETDTABLESIZE@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef getdtablesize
+# define getdtablesize rpl_getdtablesize
+# endif
+_GL_FUNCDECL_RPL (getdtablesize, int, (void));
+_GL_CXXALIAS_RPL (getdtablesize, int, (void));
+# else
+# if !@HAVE_GETDTABLESIZE@
_GL_FUNCDECL_SYS (getdtablesize, int, (void));
-# endif
+# endif
_GL_CXXALIAS_SYS (getdtablesize, int, (void));
+# endif
_GL_CXXALIASWARN (getdtablesize);
#elif defined GNULIB_POSIXCHECK
# undef getdtablesize