forked from Lainports/freebsd-ports
Fix build with gcc-3.4 Assign maintainership to submitter. PR: ports/69204 Submitted by: Xin LI <delphij@frontfree.net>
20 lines
480 B
Text
20 lines
480 B
Text
--- integer.cpp.orig Sun Jul 18 00:46:23 2004
|
|
+++ integer.cpp Sun Jul 18 00:46:46 2004
|
|
@@ -20,7 +20,7 @@
|
|
#ifdef SSE2_INTRINSICS_AVAILABLE
|
|
#ifdef __GNUC__
|
|
#include <xmmintrin.h>
|
|
- #include <malloc.h>
|
|
+ #include <stdlib.h>
|
|
#include <signal.h>
|
|
#include <setjmp.h>
|
|
#else
|
|
@@ -56,7 +56,7 @@
|
|
{
|
|
void *p;
|
|
#ifdef __GNUC__
|
|
- while (!(p = memalign(16, sizeof(T)*n)))
|
|
+ while (!(p = malloc(sizeof(T)*n)))
|
|
#else
|
|
while (!(p = _mm_malloc(sizeof(T)*n, 16)))
|
|
#endif
|