bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Include of <sys/user.h> in bfd/trad-core.c can set NBPG to PAGE_SIZE whi


From: Stephen M. Kenton
Subject: Include of <sys/user.h> in bfd/trad-core.c can set NBPG to PAGE_SIZE which causes a build failure with some configs
Date: Thu, 13 Sep 2007 14:20:28 -0500
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Include of <sys/user.h> in bfd/trad-core.c can set NBPG to PAGE_SIZE which causes a build failure with some configs. An undef statement got things building for me again with binutils-2.18.50. Is there some reason this is not unconditional now that PAGE_SIZE has gone away in the kernel headers?

#include <signal.h>

#include <sys/user.h>           /* After a.out.h  */
#undef NBPG /* Do not let <sys/user.h> set this to PAGE_SIZE */ <---------

#ifdef TRAD_HEADER
#include TRAD_HEADER
#endif

#ifndef NBPG
# define NBPG getpagesize()
#endif

FYI - Steve Kenton





reply via email to

[Prev in Thread] Current Thread [Next in Thread]