ソースを参照

Use HAVE_ALLOCA_H define before including alloca.h

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2278 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 16 年 前
コミット
04cf210d9d
4 ファイル変更6 行追加2 行削除
  1. 2 0
      exec/totempg.c
  2. 2 0
      exec/totemsrp.c
  3. 1 1
      services/cpg.c
  4. 1 1
      services/votequorum.c

+ 2 - 0
exec/totempg.c

@@ -84,7 +84,9 @@
 
 #include <config.h>
 
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 #include <netinet/in.h>
 #include <sys/uio.h>
 #include <stdio.h>

+ 2 - 0
exec/totemsrp.c

@@ -50,7 +50,9 @@
 #include <config.h>
 
 #include <assert.h>
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/stat.h>

+ 1 - 1
services/cpg.c

@@ -35,7 +35,7 @@
 
 #include <config.h>
 
-#ifndef COROSYNC_BSD
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
 #endif
 #include <sys/types.h>

+ 1 - 1
services/votequorum.c

@@ -35,7 +35,7 @@
 #include <config.h>
 
 #include <sys/types.h>
-#ifndef COROSYNC_BSD
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
 #endif
 #include <sys/types.h>