freebsd-ports/security/cryptopp/files/patch-ab
Kirill Ponomarev ee16186324 Update to 5.2
Fix build with gcc-3.4
Assign maintainership to submitter.

PR:		ports/69204
Submitted by:	Xin LI <delphij@frontfree.net>
2004-07-17 19:35:55 +00:00

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