diff options
author | Rob Landley <rob@landley.net> | 2014-06-28 20:16:11 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-06-28 20:16:11 -0500 |
commit | 434cefb863591eebbf29a0b9ff73a529fc731be1 (patch) | |
tree | 0d329f91612d2344d8627fc18ff93cc909871694 /scripts | |
parent | 474d0a9e00b72ee73c0c908c65a09f7dde495019 (diff) | |
download | toybox-434cefb863591eebbf29a0b9ff73a529fc731be1.tar.gz |
Add fallocate probe for uClibc.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/genconfig.sh | 7 |
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() |