summaryrefslogtreecommitdiff
path: root/lib/spawn.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-05-14 00:27:43 +0200
committerBruno Haible <bruno@clisp.org>2018-05-14 00:27:43 +0200
commitb62668cbd75a986bfd99a1ed8fb40ff84507e55d (patch)
tree625b121226713816550068c9f9a6633a0c8dcef2 /lib/spawn.in.h
parent11458762fb6fab692049f0cbecbc171ec3ebd2a2 (diff)
downloadgnulib-b62668cbd75a986bfd99a1ed8fb40ff84507e55d.tar.gz
posix_spawn: Fix compilation error on Android.
* lib/spawn.in.h (posix_spawnattr_t): Consider also the case HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0. (posix_spawn_file_actions_t): Consider also the case HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
Diffstat (limited to 'lib/spawn.in.h')
-rw-r--r--lib/spawn.in.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spawn.in.h b/lib/spawn.in.h
index b0dfcb5e65..a606176523 100644
--- a/lib/spawn.in.h
+++ b/lib/spawn.in.h
@@ -79,10 +79,10 @@
/* Data structure to contain attributes for thread creation. */
-#if @REPLACE_POSIX_SPAWN@
+#if @REPLACE_POSIX_SPAWN@ || (@HAVE_POSIX_SPAWNATTR_T@ && !@HAVE_POSIX_SPAWN@)
# define posix_spawnattr_t rpl_posix_spawnattr_t
#endif
-#if @REPLACE_POSIX_SPAWN@ || !@HAVE_POSIX_SPAWNATTR_T@
+#if @REPLACE_POSIX_SPAWN@ || !@HAVE_POSIX_SPAWNATTR_T@ || !@HAVE_POSIX_SPAWN@
# if !GNULIB_defined_posix_spawnattr_t
typedef struct
{
@@ -101,10 +101,10 @@ typedef struct
/* Data structure to contain information about the actions to be
performed in the new process with respect to file descriptors. */
-#if @REPLACE_POSIX_SPAWN@
+#if @REPLACE_POSIX_SPAWN@ || (@HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ && !@HAVE_POSIX_SPAWN@)
# define posix_spawn_file_actions_t rpl_posix_spawn_file_actions_t
#endif
-#if @REPLACE_POSIX_SPAWN@ || !@HAVE_POSIX_SPAWN_FILE_ACTIONS_T@
+#if @REPLACE_POSIX_SPAWN@ || !@HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ || !@HAVE_POSIX_SPAWN@
# if !GNULIB_defined_posix_spawn_file_actions_t
typedef struct
{