]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add missing HAVE_STDIO_H cmake check
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 9 Mar 2026 20:00:14 +0000 (21:00 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 16 Mar 2026 08:42:19 +0000 (09:42 +0100)
The check is performed by configure, but not with cmake. The
bsdunzip/la_getline.c file checks for presence of this definition.

CMakeLists.txt
build/cmake/config.h.in

index a4c9667e2f4e12090440cb8048534539147d2775..b5ae26e412c1bff8b9e52ed802bc121a147e7d41 100644 (file)
@@ -747,6 +747,7 @@ LA_CHECK_INCLUDE_FILE("signal.h" HAVE_SIGNAL_H)
 LA_CHECK_INCLUDE_FILE("spawn.h" HAVE_SPAWN_H)
 LA_CHECK_INCLUDE_FILE("stdarg.h" HAVE_STDARG_H)
 LA_CHECK_INCLUDE_FILE("stdint.h" HAVE_STDINT_H)
+LA_CHECK_INCLUDE_FILE("stdio.h" HAVE_STDIO_H)
 LA_CHECK_INCLUDE_FILE("stdlib.h" HAVE_STDLIB_H)
 LA_CHECK_INCLUDE_FILE("string.h" HAVE_STRING_H)
 LA_CHECK_INCLUDE_FILE("strings.h" HAVE_STRINGS_H)
index 196a49b1fa4f392768c0b49f7b0300f03c2eeddd..97ff594767208bcf795a4cbc569fed0400153d55 100644 (file)
@@ -1028,6 +1028,9 @@ typedef uint64_t uintmax_t;
 /* Define to 1 if you have the <stdint.h> header file. */
 #cmakedefine HAVE_STDINT_H 1
 
+/* Define to 1 if you have the <stdio.h> header file. */
+#cmakedefine HAVE_STDIO_H 1
+
 /* Define to 1 if you have the <stdlib.h> header file. */
 #cmakedefine HAVE_STDLIB_H 1