bug-gnulib
[Top][All Lists]
Advanced

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

Re: getpagesize on mingw


From: Bruno Haible
Subject: Re: getpagesize on mingw
Date: Wed, 17 Jun 2009 00:36:37 +0200
User-agent: KMail/1.9.9

Hi Sam,

> where is the prototype for the replacement getpagesize()?

It is in the generated <unistd.h> file.

> it would make sense to include unistd.h, but it is not generated on win32.

It should be generated on all platforms. modules/unistd contains the
line

  BUILT_SOURCES += unistd.h

which instructs automake and make to create the unistd.h file unconditionally,
before invoking the C compiler on any compilation unit.

> also, mingw already comes with a unistd.h (but it does not prototype 
> getpagesize there)

gnulib's generated unistd.h will #include_next it.

Bruno




reply via email to

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