From: Roy Marples Date: Sun, 20 Jul 2008 19:33:27 +0000 (+0000) Subject: Remove the fork() test as compile hosts will normally have it, making it redundant. X-Git-Tag: v4.0.2~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bae25b133bc5421dce1a92fcd404fa6e8ce68101;p=thirdparty%2Fdhcpcd.git Remove the fork() test as compile hosts will normally have it, making it redundant. --- diff --git a/mk/os-Linux.mk b/mk/os-Linux.mk index 5d104df3..2d316b12 100644 --- a/mk/os-Linux.mk +++ b/mk/os-Linux.mk @@ -6,23 +6,3 @@ SRC_IF= if-linux.c CPPFLAGS+= -D_BSD_SOURCE -D_XOPEN_SOURCE=600 LIBRT= -lrt - -# Work out if our fork() works or not. -# If cross-compiling, you'll need to set HAVE_FORK to yes or no depending -# on your target arch. -_HAVE_FORK_SH= if test "${HAVE_FORK}" = "yes"; then \ - echo ""; \ - elif test -n "${HAVE_FORK}"; then \ - echo "-DTHERE_IS_NO_FORK"; \ - else \ - printf '\#include \n\#include \nint main (void) { pid_t pid = fork(); if (pid == -1) exit (EXIT_FAILURE); exit (EXIT_SUCCESS); }\n' > .fork.c; \ - ${CC} .fork.c -o .fork >/dev/null 2>&1; \ - if ./.fork; then \ - echo ""; \ - else \ - echo "-DTHERE_IS_NO_FORK"; \ - fi; \ - rm -f .fork.c .fork; \ - fi; -_HAVE_FORK!= ${_HAVE_FORK_SH} -CPPFLAGS+= ${_HAVE_FORK}$(shell ${_HAVE_FORK_SH})