blob: 0d925214f770b19e0a9c3dc33d73c81cd90de1e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-include_SDL_SDL__config.h,v 1.1 2022/04/01 10:43:05 nia Exp $
Not every Unix system has alloca.h.
--- include/SDL/SDL_config.h.orig 2022-03-03 14:56:56.000000000 +0000
+++ include/SDL/SDL_config.h
@@ -59,7 +59,6 @@ has these C runtime functions available.
stage, though. Send patches if your platform lacks something. */
#ifndef _WIN32
#define HAVE_LIBC 1
-#define HAVE_ALLOCA_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
@@ -72,6 +71,10 @@ stage, though. Send patches if your plat
#define HAVE_MATH_H 1
#endif
+#if defined(__linux__) || defined(__sun)
+#define HAVE_ALLOCA_H 1
+#endif
+
#if defined(__unix__) || defined(__APPLE__)
#define HAVE_ICONV_H 1
#define HAVE_SIGNAL_H 1
|