summaryrefslogtreecommitdiff
path: root/compat/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/getopt.c')
-rw-r--r--compat/getopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/getopt.c b/compat/getopt.c
index 4683647301..019049f8c0 100644
--- a/compat/getopt.c
+++ b/compat/getopt.c
@@ -30,7 +30,8 @@
* in the public domain.
*/
-#define EOF (-1)
+#include <stdio.h>
+#include <string.h>
static int opterr = 1;
static int optind = 1;