--- a/lib/argv.c
+++ b/lib/argv.c
@@ -52,6 +52,10 @@
 
 /*  Routines imported from standard C runtime libraries. */
 
+#ifdef __ANDROID__
+# define ANSI_PROTOTYPES
+#endif
+
 #ifdef ANSI_PROTOTYPES
 
 #include <stddef.h>
