summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2000-04-10 17:15:46 +0200
committerLinus Nordberg <linus@nordberg.se>2000-04-10 17:15:46 +0200
commit68399661ca3871ba574d1b76db952911a96c37ce (patch)
treef60b363f71eaf98a5ea0e8b9ea492e65f046eef1 /tests
parent71b3031a6cde3b2f2c7fb716e7af9659875fa414 (diff)
downloadgmp-68399661ca3871ba574d1b76db952911a96c37ce.tar.gz
Declare optarg, optind, opterr if not already declared.
Diffstat (limited to 'tests')
-rw-r--r--tests/rand/stat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rand/stat.c b/tests/rand/stat.c
index 5cf60b9b4..a6f0d6068 100644
--- a/tests/rand/stat.c
+++ b/tests/rand/stat.c
@@ -24,6 +24,11 @@ Test 1000 integers 0 <= X <= 2^34-1.
#include "gmp.h"
#include "gmpstat.h"
+#if !HAVE_DECL_OPTARG
+extern char *optarg;
+extern int optind, opterr;
+#endif
+
#define FVECSIZ (100000L)
int g_debug = 0;