While fixing this test failure on Solaris 11:
>
> test-posix_spawn_file_actions_addopen.c:49: assertion failed
> FAIL: test-posix_spawn_file_actions_addopen
I introduced this configure message on a glibc system:
checking whether posix_spawn_file_actions_addopen works... no
This fixes it.
2012-01-26 Bruno Haible <[email protected]>
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.
--- m4/posix_spawn.m4.orig Thu Jan 26 18:08:43 2012
+++ m4/posix_spawn.m4 Thu Jan 26 16:17:38 2012
@@ -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_RUN_IFELSE(
[AC_LANG_SOURCE([[
#include <spawn.h>
+#include <fcntl.h>
int main ()
{
posix_spawn_file_actions_t actions;