diff options
| author | Naofumi Yasufuku | 2024-05-26 17:53:42 +0900 |
|---|---|---|
| committer | Stefan Kangas | 2024-05-26 13:41:19 +0200 |
| commit | 3ea451042a34a44da94176f27ea354e6823e68ee (patch) | |
| tree | 14fc96455c8ec7530d7c6fdb6200e2264920190c /src | |
| parent | 236034a24d0e93e1796224e2ff4a14819fcfd559 (diff) | |
| download | emacs-3ea451042a34a44da94176f27ea354e6823e68ee.tar.gz emacs-3ea451042a34a44da94176f27ea354e6823e68ee.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/search.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | 23 | ||
| 24 | #include <stdio.h> | ||
| 25 | #include <stdlib.h> | ||
| 26 | |||
| 24 | #include "lisp.h" | 27 | #include "lisp.h" |
| 25 | #include "character.h" | 28 | #include "character.h" |
| 26 | #include "buffer.h" | 29 | #include "buffer.h" |