Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eglib
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2010-01-21 00:30:34 +0300
committerMiguel de Icaza <miguel@gnome.org>2010-01-21 00:30:34 +0300
commit116c8f99586179516d632ab0b875fdddcdaf46be (patch)
tree9d4102caa89aa66b85fe2e2f29021344992ac4b9 /eglib
parent5e9719f57cef1bcdacb45d1abf932d580126d39a (diff)
Do not build the parser if no getopt is there
svn path=/trunk/mono/; revision=149930
Diffstat (limited to 'eglib')
-rw-r--r--eglib/test/driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/eglib/test/driver.c b/eglib/test/driver.c
index b33421bf2be..23e7638bdbd 100644
--- a/eglib/test/driver.c
+++ b/eglib/test/driver.c
@@ -31,7 +31,9 @@
#include "tests.h"
#include <stdio.h>
+#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#endif
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
@@ -110,7 +112,8 @@ gint main(gint argc, gchar **argv)
gboolean global_failure = FALSE;
gboolean no_final_time_labels = FALSE;
gboolean debug = FALSE;
-
+
+#if HAVE_GETOPT_H
static struct option long_options [] = {
{"help", no_argument, 0, 'h'},
{"time", no_argument, 0, 't'},
@@ -150,6 +153,7 @@ gint main(gint argc, gchar **argv)
tests_to_run = string_array_append(tests_to_run, argv[i]);
}
+#endif
time_start = get_timestamp();