> 2024-09-21 Bruno Haible
>
> getopt-posix, crypto/md5-buffer: Fix __GNUC_PREREQ re clang.
This change causes a compilation error on Solaris 11 OmniOS in C++ mode:
g++ -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I..
-DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -
Henrik Lindström wrote:
> diff --git a/lib/getopt-cdefs.in.h b/lib/getopt-cdefs.in.h
> index a1d304d49e..95f06045f5 100644
> --- a/lib/getopt-cdefs.in.h
> +++ b/lib/getopt-cdefs.in.h
> @@ -47,7 +47,7 @@
> #endif
>
> #ifndef __GNUC_PREREQ
> -# if defined __GNUC__ && defined __GNUC_VERSION__
> +#
> diff --git a/lib/getopt-cdefs.in.h b/lib/getopt-cdefs.in.h
> index a1d304d49e..95f06045f5 100644
> --- a/lib/getopt-cdefs.in.h
> +++ b/lib/getopt-cdefs.in.h
> @@ -47,7 +47,7 @@
> #endif
>
> #ifndef __GNUC_PREREQ
> -# if defined __GNUC__ && defined __GNUC_VERSION__
> +# if defined __GNUC__ &&
This broken definition of __GNUC_PREREQ happens to be the first when compiling
findutils with musl libc. Update it to match others, since __GNUC_VERSION__
isn't even a thing.
Signed-off-by: Henrik Lindström
---
lib/getopt-cdefs.in.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --g