commit | 434cefb863591eebbf29a0b9ff73a529fc731be1 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sat Jun 28 20:16:11 2014 -0500 |
committer | Rob Landley <rob@landley.net> | Sat Jun 28 20:16:11 2014 -0500 |
tree | 0d329f91612d2344d8627fc18ff93cc909871694 | |
parent | 474d0a9e00b72ee73c0c908c65a09f7dde495019 [diff] [blame] |
Add fallocate probe for uClibc.
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index 07fec2c..b50c32b 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh
@@ -35,10 +35,15 @@ #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()