blob: 96381f4ae53fede8fb39354cd6e947cc920a5328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-src_s__utf8.c,v 1.3 2012/02/05 21:55:15 sbd Exp $
alloca.h is not portable.
https://sourceforge.net/tracker/?func=detail&aid=3411730&group_id=55736&atid=478072
--- src/s_utf8.c.orig 2010-08-18 03:51:01.000000000 +0000
+++ src/s_utf8.c
@@ -18,10 +18,10 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
-#ifdef WIN32
-#include <malloc.h>
-#else
+#if defined(HAVE_ALLOCA_H)
#include <alloca.h>
+#elif defined(HAVE_MALLOC_H)
+#include <malloc.h>
#endif
#include "s_utf8.h"
|