projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
474d0a9
)
Add fallocate probe for uClibc.
author
Rob Landley
<rob@landley.net>
Sun, 29 Jun 2014 01:16:11 +0000
(20:16 -0500)
committer
Rob Landley
<rob@landley.net>
Sun, 29 Jun 2014 01:16:11 +0000
(20:16 -0500)
scripts/genconfig.sh
patch
|
blob
|
history
diff --git
a/scripts/genconfig.sh
b/scripts/genconfig.sh
index
07fec2c
..
b50c32b
100755
(executable)
--- 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()