summaryrefslogtreecommitdiff
path: root/test/argp/argp-ex2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/argp/argp-ex2.c')
-rw-r--r--test/argp/argp-ex2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/argp/argp-ex2.c b/test/argp/argp-ex2.c
index c49fbac..67c9b4b 100644
--- a/test/argp/argp-ex2.c
+++ b/test/argp/argp-ex2.c
@@ -20,6 +20,7 @@
parsers for various tasks). */
#include <stdlib.h>
+#if (defined(__GLIBC__) && !defined(__UCLIBC__)) || defined(__UCLIBC_HAS_ARGP__)
#include <argp.h>
const char *argp_program_version =
@@ -37,9 +38,14 @@ static char doc[] =
used in the output for @samp{--help}, and the @samp{--version}
option will print out @code{argp_program_version}. */
static struct argp argp = { 0, 0, 0, doc };
+#endif
int main (int argc, char **argv)
{
+#if (defined(__GLIBC__) && !defined(__UCLIBC__)) || defined(__UCLIBC_HAS_ARGP__)
argp_parse (&argp, argc, argv, 0, 0, 0);
exit (0);
+#else
+ return 23;
+#endif
}