mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
And here the replacement libedit. Fixes some problems on solaris and hopefully on OpenBSD as well :)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7502 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
35
libs/libedit/patches/13-vis.c.patch
Normal file
35
libs/libedit/patches/13-vis.c.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
--- export/src/vis.c 2007-08-31 00:02:46.000000000 +0200
|
||||
+++ ../src/vis.c 2007-08-31 00:03:08.000000000 +0200
|
||||
@@ -58,12 +58,30 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
-#include <sys/cdefs.h>
|
||||
+/* AIX requires this to be the first thing in the file. */
|
||||
+#if defined (_AIX) && !defined (__GNUC__)
|
||||
+ #pragma alloca
|
||||
+#endif
|
||||
+
|
||||
+#include <config.h>
|
||||
+
|
||||
+#ifdef __GNUC__
|
||||
+# undef alloca
|
||||
+# define alloca(n) __builtin_alloca (n)
|
||||
+#else
|
||||
+# ifdef HAVE_ALLOCA_H
|
||||
+# include <alloca.h>
|
||||
+# else
|
||||
+# ifndef _AIX
|
||||
+extern char *alloca ();
|
||||
+# endif
|
||||
+# endif
|
||||
+#endif
|
||||
+
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: vis.c,v 1.35 2006/08/28 20:42:12 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
-#include "namespace.h"
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <assert.h>
|
Reference in New Issue
Block a user