This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: removing reliance on NBPG/UPAGES in bfd/trad-core.c


Hi Mike,

so i come at this from a linux point of view where doing simply s/NBPG/getpagesize()/ is OK ... is there any other system i need to consider for this ?

Yes probably. Older BSD systems maybe, or some other unix-derived OSes.


if so, a better change might be to put after the includes:
#ifndef NBPG
# define NBPG getpagesize()
#endif

I think that this would be safer.


Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]