Fix build error on mingw with the modules sys_select and unistd.
[pspp] / modules / posix_spawn-tests
1 Files:
2 tests/test-posix_spawn3.c
3
4 Depends-on:
5 posix_spawn_file_actions_init
6 posix_spawn_file_actions_addopen
7 posix_spawn_file_actions_destroy
8 stdbool
9 unistd
10 sys_wait
11 close
12
13 configure.ac:
14 AC_EGREP_CPP([notposix], [[
15 #if defined _MSC_VER || defined __MINGW32__
16   notposix
17 #endif
18   ]],
19   [posix_spawn_ported=no],
20   [posix_spawn_ported=yes])
21 AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes])
22
23 Makefile.am:
24 if POSIX_SPAWN_PORTED
25 TESTS += test-posix_spawn3
26 check_PROGRAMS += test-posix_spawn3
27 endif