File: widl-pathtools-bsd.patch

package info (click to toggle)
mingw-w64 10.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 117,136 kB
  • sloc: ansic: 1,278,630; sh: 9,152; javascript: 7,213; makefile: 5,868; yacc: 3,693; asm: 3,391; lex: 2,136; cpp: 172
file content (19 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Ensure alloca is defined
Author: Stephen Kitt <skitt@debian.org>

On Debian platforms, we should always include alloca.h, so there’s no
point in checking. This makes the alloca() definition available on
kFreeBSD.

--- a/mingw-w64-tools/widl/src/pathtools.c
+++ b/mingw-w64-tools/widl/src/pathtools.c
@@ -12,9 +12,7 @@
 #include <limits.h>
 #include <stdio.h>
 #include <string.h>
-#if defined(__linux__) || defined(__CYGWIN__) || defined(__MSYS__)
 #include <alloca.h>
-#endif
 #include <unistd.h>
 
 /* If you don't define this, then get_executable_path()