posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
authorBruno Haible <bruno@clisp.org>
Thu, 26 Jan 2012 17:11:47 +0000 (18:11 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 26 Jan 2012 17:11:47 +0000 (18:11 +0100)
* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
In the test program, include <fcntl.h>, for O_RDONLY.

ChangeLog
m4/posix_spawn.m4

index a1c8a29..485e7d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-01-26  Bruno Haible  <bruno@clisp.org>
+
+       posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
+       * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
+       In the test program, include <fcntl.h>, for O_RDONLY.
+
 2012-01-26  Eric Blake  <eblake@redhat.com>
 
        pipe2: document lack of thread-safety in replacement
index 4fad17f..57928eb 100644 (file)
@@ -1,4 +1,4 @@
-# posix_spawn.m4 serial 10
+# posix_spawn.m4 serial 11
 dnl Copyright (C) 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -499,6 +499,7 @@ AC_DEFUN([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN],
       [AC_RUN_IFELSE(
          [AC_LANG_SOURCE([[
 #include <spawn.h>
+#include <fcntl.h>
 int main ()
 {
   posix_spawn_file_actions_t actions;