[asterisk-commits] qwell: trunk r43230 - /trunk/main/strcompat.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Sep 18 14:24:51 MST 2006


Author: qwell
Date: Mon Sep 18 16:24:50 2006
New Revision: 43230

URL: http://svn.digium.com/view/asterisk?rev=43230&view=rev
Log:
Only use alloca.h on OSes that have it.

Reported by jontow on IRC in #asterisk-dev

Modified:
    trunk/main/strcompat.c

Modified: trunk/main/strcompat.c
URL: http://svn.digium.com/view/asterisk/trunk/main/strcompat.c?rev=43230&r1=43229&r2=43230&view=diff
==============================================================================
--- trunk/main/strcompat.c (original)
+++ trunk/main/strcompat.c Mon Sep 18 16:24:50 2006
@@ -25,8 +25,11 @@
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
-#include <string.h>
+#endif
 
 #ifndef HAVE_STRSEP
 char *strsep(char **str, const char *delims)



More information about the asterisk-commits mailing list