diff options
Diffstat (limited to 'lib/portability.h')
-rw-r--r-- | lib/portability.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <getopt.h> + #if !defined(__GLIBC__) // POSIX basename. #include <libgen.h> |