Opened 11 years ago

Last modified 7 years ago

#850 closed defect (Fixed)

Compiler warning on FreeBSD 7.0

Reported by: sjmurdoch Owned by:
Priority: Very Low Milestone:
Component: Core Tor/Tor Version: 0.2.1.5-alpha
Severity: Keywords:
Cc: sjmurdoch Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

When compiling Tor using FreeBSD 7.0 (SVN r17189), I get the following warning:

util.c: In function '_tor_malloc_roundup':
util.c:260: warning: implicit declaration of function 'malloc_usable_size'

#include'ing <malloc_np.h> in util.c fixes the warning (this header file is mentioned in the malloc(3) manpage).

[Automatically added by flyspray2trac: Operating System: BSD]

Child Tickets

Change History (3)

comment:1 Changed 11 years ago by nickm

Cool!

BTW, for stuff like this, I think you should just feel free to check in the fix. (In this case, adding the
header to configure.in and a conditional include to util.c.)

Fixing now.

comment:2 Changed 11 years ago by nickm

flyspray2trac: bug closed.

comment:3 Changed 7 years ago by nickm

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