Mercurial > hg > toybox
changeset 1368:8bd7e28a9eb8 draft
Add fallocate probe for uClibc.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 28 Jun 2014 20:16:11 -0500 |
parents | def326708e49 |
children | 5ec6582aac50 |
files | scripts/genconfig.sh |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/genconfig.sh Sat Jun 28 20:02:57 2014 -0500 +++ b/scripts/genconfig.sh Sat Jun 28 20:16:11 2014 -0500 @@ -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()