aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compat.h4
-rw-r--r--tmux.c1
2 files changed, 1 insertions, 4 deletions
diff --git a/compat.h b/compat.h
index d38e6f0c..7824fc52 100644
--- a/compat.h
+++ b/compat.h
@@ -344,9 +344,7 @@ int utf8proc_mbtowc(wchar_t *, const char *, size_t);
int utf8proc_wctomb(char *, wchar_t);
#endif
-#ifdef HAVE_GETOPT
-#include <getopt.h>
-#else
+#ifndef HAVE_GETOPT
/* getopt.c */
extern int BSDopterr;
extern int BSDoptind;
diff --git a/tmux.c b/tmux.c
index 78c8c70b..28ec54cf 100644
--- a/tmux.c
+++ b/tmux.c
@@ -22,7 +22,6 @@
#include <errno.h>
#include <event.h>
#include <fcntl.h>
-#include <getopt.h>
#include <langinfo.h>
#include <locale.h>
#include <pwd.h>