فهرست منبع

do not include alloca.h under BSD; alloca is in stdlib.h

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1221 fd59a12c-fef9-0310-b244-a6a79926bd2f
Fabien Thomas 19 سال پیش
والد
کامیت
d4e4f10df1
3فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 2 0
      exec/cpg.c
  2. 2 0
      exec/totempg.c
  3. 2 0
      exec/totemsrp.c

+ 2 - 0
exec/cpg.c

@@ -33,7 +33,9 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifndef OPENAIS_BSD
 #include <alloca.h>
+#endif
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>

+ 2 - 0
exec/totempg.c

@@ -82,7 +82,9 @@
  *	
  */
 
+#ifndef OPENAIS_BSD
 #include <alloca.h>
+#endif
 #include <netinet/in.h>
 #include <sys/uio.h>
 #include <stdio.h>

+ 2 - 0
exec/totemsrp.c

@@ -48,7 +48,9 @@
  *   usage on 1.6ghz xeon from 35% to less then .1 % as measured by top
  */
 
+#ifndef OPENAIS_BSD
 #include <alloca.h>
+#endif
 #include <assert.h>
 #include <sys/mman.h>
 #include <sys/types.h>