Opened 11 years ago

Last modified 7 years ago

#625 closed defect (Fixed)

'SIZE_MAX' undeclared

Reported by: weasel Owned by: nickm
Priority: Low Milestone:
Component: Core Tor/Tor Version: 0.2.0.21-rc
Severity: Keywords:
Cc: weasel Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

OpenBSD_malloc_Linux.c: In function 'calloc':
OpenBSD_malloc_Linux.c:1941: error: 'SIZE_MAX' undeclared (first use in this function)
OpenBSD_malloc_Linux.c:1941: error: (Each undeclared identifier is reported only once
OpenBSD_malloc_Linux.c:1941: error: for each function it appears in.)

[on alpha]

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (4)

comment:1 Changed 11 years ago by nickm

Ug. The openbsd_malloc_linux.c code has:

#if defined(i386)
defined(arm)defined(powerpc)

#define SIZE_MAX 0xffffffff
#endif
#if defined(x86_64)
#define SIZE_MAX 0xffffffffffffffff
#endif

I thought this kind of tomfoolery went out of style in the 90s.

comment:2 Changed 11 years ago by nickm

Should be fixed by r14000...r14002.

comment:3 Changed 11 years ago by nickm

flyspray2trac: bug closed.

comment:4 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.