From: Naofumi Yasufuku Date: Sun, 26 May 2024 08:53:42 +0000 (+0900) Subject: Fix --enable-checking build with macOS clang 15.0.0 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=47810df41b2c087f9a5a592d34c1bd24a91bdc9d;p=emacs.git Fix --enable-checking build with macOS clang 15.0.0 search.c:3428:7: error: call to undeclared library function 'free' ... configure:9131: checking for C compiler version configure:9140: gcc --version >&5 Apple clang version 15.0.0 (clang-1500.3.9.4) Target: arm64-apple-darwin23.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin * src/search.c: Include stdlib.h for free(), and stdio.h for open_memstream(), fclose(). Copyright-paperwork-exempt: yes (cherry picked from commit 3ea451042a34a44da94176f27ea354e6823e68ee) --- diff --git a/src/search.c b/src/search.c index b092d5b7fef..3c07933b5da 100644 --- a/src/search.c +++ b/src/search.c @@ -21,6 +21,9 @@ along with GNU Emacs. If not, see . */ #include +#include +#include + #include "lisp.h" #include "character.h" #include "buffer.h"