Add fallocate probe for uClibc.
authorRob Landley <rob@landley.net>
Sun, 29 Jun 2014 01:16:11 +0000 (20:16 -0500)
committerRob Landley <rob@landley.net>
Sun, 29 Jun 2014 01:16:11 +0000 (20:16 -0500)
scripts/genconfig.sh

index 07fec2c..b50c32b 100755 (executable)
@@ -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()