From 0b46f68c5fda153c9ca164766b83da430d1ef02e Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Thu, 13 Jan 2011 21:21:19 +0100 Subject: Fixed compilation without argp.h available --- tests/benchmarks/benchmarks.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tests/benchmarks') diff --git a/tests/benchmarks/benchmarks.c b/tests/benchmarks/benchmarks.c index e926f920..7ff6172e 100644 --- a/tests/benchmarks/benchmarks.c +++ b/tests/benchmarks/benchmarks.c @@ -27,6 +27,11 @@ #include #include +const char *libssh_benchmarks_names[]={ + "null", + "benchmark_raw_upload" +}; + #ifdef HAVE_ARGP_H #include @@ -38,10 +43,6 @@ static char **cmdline; /* Program documentation. */ static char doc[] = "libssh benchmarks"; -const char *libssh_benchmarks_names[]={ - "null", - "benchmark_raw_upload" -}; /* The options we understand. */ static struct argp_option options[] = { @@ -122,6 +123,10 @@ static void cmdline_parse(int argc, char **argv, struct argument_s *arguments) { */ #ifdef HAVE_ARGP_H argp_parse(&argp, argc, argv, 0, 0, arguments); +#else /* HAVE_ARGP_H */ + (void) argc; + (void) argv; + (void) arguments; #endif /* HAVE_ARGP_H */ } -- cgit v1.2.3