From 56079ad14129189105a38bcd9bab0c3542e43920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20S=C3=B6der?= Date: Mon, 17 Apr 2023 21:51:29 +0200 Subject: [PATCH] GNU getopt not always used when USE_GNU is defined Missing include guard leads to GNU getopt being used in some cases and getopt_long in others. --- src/lharc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lharc.c b/src/lharc.c index 91fa03b..8884770 100644 --- a/src/lharc.c +++ b/src/lharc.c @@ -207,7 +207,11 @@ commands: options:\n\ "); } +#if USE_GNU +#include /* use GNU getopt_long() */ +#else #include "getopt_long.h" +#endif /* Parse LHA options