Fix LP64 architectures and especially ia64. Functions that return

a pointer and lack a prototype will have the return value (assumed
to be an integer) zero-extended to a pointer. On ia64 this is
unconditionally fatal as it zeroes-out the region bits, forming an
invalid pointer. Fix the sigsegv by including <stdlib.h>.

Pointy hat: bbraun
This commit is contained in:
Marcel Moolenaar 2002-12-30 01:41:14 +00:00
parent 3a92e5d5e9
commit 2bc46a6452
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h>
#include <libgen.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>

View File

@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h>
#include <libgen.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>