summaryrefslogtreecommitdiff
path: root/lib/spawn.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-11-24 20:12:02 +0100
committerBruno Haible <bruno@clisp.org>2019-11-24 20:12:02 +0100
commitff66f981a9c19ee7644a55faf873f6ba4e89bdc0 (patch)
treea15db4f720e0894b42da43f54ee94c7adc15f2da /lib/spawn.in.h
parentdf8452e776ee1e1374c4358d5df4c4f8e8440418 (diff)
downloadgnulib-ff66f981a9c19ee7644a55faf873f6ba4e89bdc0.tar.gz
Fix errors in C++ mode on mingw.
* lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS. * lib/signal.in.h (pthread_sigmask): Likewise. * lib/spawn.in.h (posix_spawn_file_actions_addopen, posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2): Likewise. * lib/wchar.in.h (btowc): Likewise.
Diffstat (limited to 'lib/spawn.in.h')
-rw-r--r--lib/spawn.in.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/spawn.in.h b/lib/spawn.in.h
index 721d70f4b0..09c66f5adc 100644
--- a/lib/spawn.in.h
+++ b/lib/spawn.in.h
@@ -802,7 +802,9 @@ _GL_CXXALIAS_SYS (posix_spawn_file_actions_addopen, int,
int __fd,
const char *_Restrict_ __path, int __oflag, mode_t __mode));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (posix_spawn_file_actions_addopen);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef posix_spawn_file_actions_addopen
# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
@@ -833,7 +835,9 @@ _GL_FUNCDECL_SYS (posix_spawn_file_actions_addclose, int,
_GL_CXXALIAS_SYS (posix_spawn_file_actions_addclose, int,
(posix_spawn_file_actions_t *__file_actions, int __fd));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (posix_spawn_file_actions_addclose);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef posix_spawn_file_actions_addclose
# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
@@ -868,7 +872,9 @@ _GL_CXXALIAS_SYS (posix_spawn_file_actions_adddup2, int,
(posix_spawn_file_actions_t *__file_actions,
int __fd, int __newfd));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (posix_spawn_file_actions_adddup2);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef posix_spawn_file_actions_adddup2
# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2