Patch from Elliott Hughes for Android/bionic build.
authorRob Landley <rob@landley.net>
Fri, 21 Nov 2014 12:42:37 +0000 (06:42 -0600)
committerRob Landley <rob@landley.net>
Fri, 21 Nov 2014 12:42:37 +0000 (06:42 -0600)
lib/portability.h

index 0dace96..548c128 100644 (file)
 
 // This makes it stop.
 
+// Except on Android, where fortify is mandatory.
+#if !defined(__ANDROID__)
 #undef _FORTIFY_SOURCE
+#endif
 
 // For musl
 #define _ALL_SOURCE
@@ -173,7 +176,7 @@ int clearenv(void);
 #define SWAP_LE64(x) (x)
 #endif
 
-#if defined(__APPLE__) || defined(__ANDROID__) \
+#if defined(__APPLE__) \
     || (defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 10)
 ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
 ssize_t getline(char **lineptr, size_t *n, FILE *stream);