From 434cefb863591eebbf29a0b9ff73a529fc731be1 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 28 Jun 2014 20:16:11 -0500 Subject: [PATCH] Add fallocate probe for uClibc. --- scripts/genconfig.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 + + int main(int argc, char *argv[]) { return posix_fallocate(0,0,0); } +EOF } genconfig() -- 2.11.0