Просмотр исходного кода

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 лет назад
Родитель
Сommit
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.
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
  */
 
 
+#ifndef OPENAIS_BSD
 #include <alloca.h>
 #include <alloca.h>
+#endif
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <sys/un.h>

+ 2 - 0
exec/totempg.c

@@ -82,7 +82,9 @@
  *	
  *	
  */
  */
 
 
+#ifndef OPENAIS_BSD
 #include <alloca.h>
 #include <alloca.h>
+#endif
 #include <netinet/in.h>
 #include <netinet/in.h>
 #include <sys/uio.h>
 #include <sys/uio.h>
 #include <stdio.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
  *   usage on 1.6ghz xeon from 35% to less then .1 % as measured by top
  */
  */
 
 
+#ifndef OPENAIS_BSD
 #include <alloca.h>
 #include <alloca.h>
+#endif
 #include <assert.h>
 #include <assert.h>
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/types.h>