diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-10-29 18:29:16 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-10-29 18:29:16 +0100 |
commit | b9db38d7f5451c281f7ba345cc3f71e2240ba23a (patch) | |
tree | 685a8ac3cc59fcdc513382396c6bdb5627f0f80c /gl/unistd.in.h | |
parent | 3327d943c46afad17f64b5500663b80059d39aa3 (diff) | |
download | gnutls-b9db38d7f5451c281f7ba345cc3f71e2240ba23a.tar.gz |
updated gnulib.
Diffstat (limited to 'gl/unistd.in.h')
-rw-r--r-- | gl/unistd.in.h | 16 |
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 |