1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

Fix build on sparc64

Notified by:	pointyhat via kris
Submitted by:	Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
		(maintainer by mail)
This commit is contained in:
Emanuel Haupt 2006-01-03 13:45:54 +00:00
parent 178ff290b7
commit 7fa62b9067
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=152656
3 changed files with 58 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= ipa
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://ipa-system.sourceforge.net/ \
http://www.mirrors.wiretapped.net/security/network-monitoring/ipa/ \

View File

@ -0,0 +1,46 @@
--- src/memfunc.c.orig Sat Dec 3 11:28:00 2005
+++ src/memfunc.c Tue Jan 3 13:44:56 2006
@@ -575,8 +575,8 @@
mem_type->name);
if ( (mem = malloc(size + MEM_DESC_BUF_OFFSET + sizeof(gbytes))) == NULL) {
- logmsgx("mem_malloc(%lu + %u, %s) failed: malloc: %s",
- (u_long)size, MEM_DESC_BUF_OFFSET, mem_type->name,
+ logmsgx("mem_malloc(%lu + %lu, %s) failed: malloc: %s",
+ (u_long)size, (u_long)MEM_DESC_BUF_OFFSET, mem_type->name,
strerror(errno));
return NULL;
}
@@ -614,8 +614,8 @@
size *= number;
if ( (mem = malloc(size + MEM_DESC_BUF_OFFSET + sizeof(gbytes))) == NULL) {
- logmsgx("mem_calloc(%lu + %u, %s) failed: %s",
- (u_long)size, MEM_DESC_BUF_OFFSET, mem_type->name,
+ logmsgx("mem_calloc(%lu + %lu, %s) failed: %s",
+ (u_long)size, (u_long)MEM_DESC_BUF_OFFSET, mem_type->name,
strerror(errno));
return NULL;
}
@@ -714,8 +714,8 @@
#ifdef WITH_MEMFUNC_DEBUG
/* malloc() --> memcpy() --> free() */
if ( (mem2 = malloc(size2 + MEM_DESC_BUF_OFFSET + sizeof(gbytes))) == NULL) {
- logmsgx("mem_realloc(%s): malloc(%lu + %u) failed: %s",
- mem_type->name, (u_long)size2, MEM_DESC_BUF_OFFSET,
+ logmsgx("mem_realloc(%s): malloc(%lu + %lu) failed: %s",
+ mem_type->name, (u_long)size2, (u_long)MEM_DESC_BUF_OFFSET,
strerror(errno));
return NULL;
}
@@ -733,8 +733,8 @@
/* True realloc(). */
mem1->signature = MEM_NOSIGNATURE;
if ( (mem2 = realloc(mem1, size2 + MEM_DESC_BUF_OFFSET + sizeof(gbytes))) == NULL) {
- logmsgx("mem_realloc(%lu + %u, %s) failed: %s",
- (u_long)size2, MEM_DESC_BUF_OFFSET, mem_type->name,
+ logmsgx("mem_realloc(%lu + %lu, %s) failed: %s",
+ (u_long)size2, (u_long)MEM_DESC_BUF_OFFSET, mem_type->name,
strerror(errno));
mem1->signature = MEM_SIGNATURE & (int)size1;
return NULL;

View File

@ -0,0 +1,11 @@
--- src/parser.c.orig Sat Dec 3 11:28:00 2005
+++ src/parser.c Tue Jan 3 13:44:50 2006
@@ -533,7 +533,7 @@
* outside of this function.
*/
struct parser_pbuf *
-parser_new_pbuf(u_int size)
+parser_new_pbuf(size_t size)
{
struct parser_pbuf *pbuf;