diff options
author | Elliott Hughes <enh@google.com> | 2018-09-14 09:54:45 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-09-15 00:06:07 -0500 |
commit | d20a11f236b57fe515ce4dbb37e0300d7ba179b5 (patch) | |
tree | 906d1ed31d5c813dc7f10ff519912e19d12332d4 /lib | |
parent | 013876f067a11ebfcf47789921b376e7bf3bf5b8 (diff) | |
download | toybox-d20a11f236b57fe515ce4dbb37e0300d7ba179b5.tar.gz |
Fix glibc build after 013876f067a11ebfcf47789921b376e7bf3bf5b8.
/usr/include/unistd.h:626:15: error: conflicting types for 'confstr'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/portability.h b/lib/portability.h index 0404c85e..8e1049f9 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -257,8 +257,8 @@ extern CODE prioritynames[], facilitynames[]; #endif void xgetrandom(void *buf, unsigned len, unsigned flags); -// android NDK doesn't have confstr -#ifndef _CS_PATH +// Android's bionic libc doesn't have confstr. +#ifdef __BIONIC__ #define _CS_PATH 0 #define _CS_V7_ENV 1 #include <string.h> |