From 6a16bdb808b02977cc99f84b4adae420f99019d2 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Thu, 3 Mar 2016 15:36:17 -0800 Subject: assume getopt/getopt_long is available There is no longer a good reason to detect whether or not getopt_long() is available. All UNIX implementations we're likely to run on have it. And if we ever find one that doesn't the right thing to do is not fallback to getopt() but to include the getopt_long() source in our package like we do with the pcre2 library. Since it's licensed under LGPL we can legally do so if it becomes necessary. This partially addresses issue #2790. --- src/fish_tests.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/fish_tests.cpp') diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index bcfff032..dfc34609 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -4,7 +4,6 @@ #include "config.h" - #include #include #include @@ -24,20 +23,13 @@ #include #include #include - -#ifdef HAVE_GETOPT_H -#include -#endif - #include - #include #include #include #include "fallback.h" #include "util.h" - #include "common.h" #include "proc.h" #include "reader.h" -- cgit v1.2.3