Some of the tests use fork() which fails for targets that lack fork(). The library itself does not care about fork() usage, but the normal build fails as it tries to build the tests.
Signed-off-by: Mike Frysinger <vap...@gentoo.org> --- configure.in | 1 + tests/fusion_fork.c | 3 +++ tests/fusion_reactor.c | 3 +++ tests/fusion_stream.c | 4 ++++ 4 files changed, 11 insertions(+), 0 deletions(-) diff --git a/configure.in b/configure.in index 4b81160..739f50e 100644 --- a/configure.in +++ b/configure.in @@ -94,6 +94,7 @@ AC_C_BIGENDIAN AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long long) +AC_CHECK_FUNCS(fork) ## Work around libstuhl during cross build... diff --git a/tests/fusion_fork.c b/tests/fusion_fork.c index f6cb2ae..2087e52 100644 --- a/tests/fusion_fork.c +++ b/tests/fusion_fork.c @@ -49,6 +49,9 @@ #include <fusion/reactor.h> #include <fusion/ref.h> +#ifndef HAVE_FORK +# define fork() -1 +#endif #define MSG(x...) \ do { \ diff --git a/tests/fusion_reactor.c b/tests/fusion_reactor.c index 28d4ce1..47bc9a2 100644 --- a/tests/fusion_reactor.c +++ b/tests/fusion_reactor.c @@ -51,6 +51,9 @@ #include <fusion/reactor.h> #include <fusion/ref.h> +#ifndef HAVE_FORK +# define fork() -1 +#endif #if DIRECT_BUILD_DEBUGS #define MSG(x...) \ diff --git a/tests/fusion_stream.c b/tests/fusion_stream.c index dd86e05..b07d63d 100644 --- a/tests/fusion_stream.c +++ b/tests/fusion_stream.c @@ -52,6 +52,10 @@ #include <fusion/fusion.h> #include <fusion/shm/pool.h> +#ifndef HAVE_FORK +# define fork() -1 +#endif + #define MAX_NUM_BLOCKS 10000 #define SIZE_ALIGNMASK 0x3 -- 1.6.5.rc1 _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev