Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
[gnulib.git] / modules / posix_spawnattr_getschedparam
index 4691523..e93479a 100644 (file)
@@ -11,7 +11,9 @@ spawn
 
 configure.ac:
 gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
+if test $HAVE_POSIX_SPAWN = 0 \
+   || test $REPLACE_POSIX_SPAWN = 1 \
+   || test $gl_cv_func_spawnattr_setschedparam = no; then
   gl_REPLACE_SPAWN_H
   AC_LIBOBJ([spawnattr_getschedparam])
 fi