aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()