From d6e9cb0603817437aea15849228255661e19b2b6 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 28 Sep 2018 14:30:57 +0200 Subject: build: use local getopt for anything system where it's missing Do not force include the compat folder as it may contain headers that do exist for the compiler. Include the compat headers individually when they are needed and use an explicit path to compat/ --- include/compat/getopt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/compat/getopt.h b/include/compat/getopt.h index 1922a0e..930e002 100644 --- a/include/compat/getopt.h +++ b/include/compat/getopt.h @@ -50,8 +50,6 @@ extern int optreset; * specific block, only when *not* __UNISTD_H_SOURCED__, in which * to declare the extended API. */ -#endif /* !defined(__GETOPT_H__) */ - #if !defined(__UNISTD_H_SOURCED__) && !defined(__GETOPT_LONG_H__) #define __GETOPT_LONG_H__ @@ -93,3 +91,5 @@ extern int getopt_long_only(int nargc, char * const *nargv, const char *options, #endif #endif /* !defined(__UNISTD_H_SOURCED__) && !defined(__GETOPT_LONG_H__) */ + +#endif /* !defined(__GETOPT_H__) */ -- cgit v1.2.3