[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
posix_spawn fix
From: |
Bruno Haible |
Subject: |
posix_spawn fix |
Date: |
Sun, 14 Mar 2010 20:13:14 +0100 |
User-agent: |
KMail/1.9.9 |
Compiling a testdir for 'spawn' on mingw, I see this error:
../gllib/spawn.h:406: error: `POSIX_SPAWN_RESETIDS' undeclared here (not in a
function)
../gllib/spawn.h:407: error: `POSIX_SPAWN_SETPGROUP' undeclared here (not in a
function)
../gllib/spawn.h:407: error: `POSIX_SPAWN_SETSIGDEF' undeclared here (not in a
function)
../gllib/spawn.h:408: error: `POSIX_SPAWN_SETSIGMASK' undeclared here (not in a
function)
This fixes it.
2010-03-14 Bruno Haible <address@hidden>
Fix compilation error when modules 'posix_spawn[p]' are not used.
* m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
* m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
--- m4/spawn_h.m4.orig Sun Mar 14 20:07:18 2010
+++ m4/spawn_h.m4 Sun Mar 14 20:05:19 2010
@@ -1,4 +1,4 @@
-# spawn_h.m4 serial 7
+# spawn_h.m4 serial 8
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -33,6 +33,11 @@
fi
AC_SUBST([HAVE_SPAWN_H])
+ AC_CHECK_FUNCS_ONCE([posix_spawn])
+ if test $ac_cv_func_posix_spawn != yes; then
+ HAVE_POSIX_SPAWN=0
+ fi
+
AC_REQUIRE([AC_C_RESTRICT])
dnl Check for declarations of anything we want to poison if the
--- m4/posix_spawn.m4.orig Sun Mar 14 20:07:18 2010
+++ m4/posix_spawn.m4 Sun Mar 14 20:05:27 2010
@@ -1,4 +1,4 @@
-# posix_spawn.m4 serial 5
+# posix_spawn.m4 serial 6
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -69,8 +69,6 @@
;;
*) REPLACE_POSIX_SPAWN=1 ;;
esac
- else
- HAVE_POSIX_SPAWN=0
fi
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- posix_spawn fix,
Bruno Haible <=