summary refs log tree commit diff stats
path: root/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd.c b/cmd.c
index 3c89a0527e..cc70311b9f 100644
--- a/cmd.c
+++ b/cmd.c
@@ -21,13 +21,12 @@
 #include <ctype.h>
 #include <errno.h>
 #include <sys/time.h>
+#include <getopt.h>
 
 #include "cmd.h"
 
 #define _(x)	x	/* not gettext support yet */
 
-extern int optind;
-
 /* from libxcmd/command.c */
 
 cmdinfo_t	*cmdtab;