aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-06-28 20:16:11 -0500
committerRob Landley <rob@landley.net>2014-06-28 20:16:11 -0500
commit434cefb863591eebbf29a0b9ff73a529fc731be1 (patch)
tree0d329f91612d2344d8627fc18ff93cc909871694 /scripts
parent474d0a9e00b72ee73c0c908c65a09f7dde495019 (diff)
downloadtoybox-434cefb863591eebbf29a0b9ff73a529fc731be1.tar.gz
Add fallocate probe for uClibc.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 07fec2c1..b50c32bb 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -35,10 +35,15 @@ EOF
#endif
EOF
- # Hard to come by in uClibc.
+ # Work around some uClibc limitations
probesymbol TOYBOX_ICONV -c << EOF
#include "iconv.h"
EOF
+ probesymbol TOYBOX_FALLOCATE << EOF
+ #include <fcntl.h>
+
+ int main(int argc, char *argv[]) { return posix_fallocate(0,0,0); }
+EOF
}
genconfig()