aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/main.cpp')
-rw-r--r--ui/qt/main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
index 3048c92b5e..2acdb80688 100644
--- a/ui/qt/main.cpp
+++ b/ui/qt/main.cpp
@@ -33,10 +33,12 @@
#include <zlib.h> /* to get the libz version number */
#endif
-#ifndef HAVE_GETOPT
-# include "wsutil/wsgetopt.h"
-#else
-# include <getopt.h>
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
+
+#ifndef HAVE_GETOPT_LONG
+#include "wsutil/wsgetopt.h"
#endif
#include <wsutil/clopts_common.h>