From c77b66455762f42bb824c1aa8cc60e7f4d44bdab Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 21 Nov 2019 14:09:23 -0800 Subject: Add getopt(1). Includes new tests. --- lib/portability.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/portability.h') diff --git a/lib/portability.h b/lib/portability.h index b586c132..481e3f04 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -105,6 +105,9 @@ static inline char *basename(char *path) { return __xpg_basename(path); } char *strcasestr(const char *haystack, const char *needle); #endif // defined(glibc) +// getopt_long(), getopt_long_only(), and struct option. +#include + #if !defined(__GLIBC__) // POSIX basename. #include -- cgit v1.2.3