aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-07-03 15:17:25 -0500
committerRob Landley <rob@landley.net>2015-07-03 15:17:25 -0500
commit9933273c5b7b6e0471d9195e8c2facb795b795ae (patch)
tree87d5e8a404ec360a69b80648f622d2bfc5bfecd0 /scripts
parent82d8d7cb7eacabd1a498c001dd5618a1302f854b (diff)
downloadtoybox-9933273c5b7b6e0471d9195e8c2facb795b795ae.tar.gz
Probe for fork() instead of relying on a distro-specific #define.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 313c7c70..031e97e0 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -83,6 +83,12 @@ EOF
#error nope
#endif
EOF
+
+ # nommu support
+ probesymbol TOYBOX_FORK << EOF
+ #include <unistd.h>
+ int main(int argc, char *argv[]) { return fork(); }
+EOF
}
genconfig()