cygwin: export __getpagesize
The inclusion of <sys/cygwin.h> by <sys/shm.h>, besides causing namespace pollution, also makes it very difficult to get the WINVER-dependent parts of the former. This affects code (such as x11vnc -unixpw_nis) which use both SysV shared memory (e.g. the X11 MIT-SHM extension) and user password authentication. getpagesize is the simplest function to retreive this information, but it is a legacy function and would also pollute the global namespace. The LSB lists another form which is in the implementation-reserved namespace: http://refspecs.linuxfoundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/baselib---getpagesize.html Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
committed by
Corinna Vinschen
parent
ecf453f963
commit
660f84b15b
@ -21,6 +21,10 @@ details. */
|
||||
#include "sync.h"
|
||||
#include "ntdll.h"
|
||||
|
||||
/* __getpagesize is only available from libcygwin.a */
|
||||
#undef SHMLBA
|
||||
#define SHMLBA (wincap.allocation_granularity ())
|
||||
|
||||
/*
|
||||
* client_request_shm Constructors
|
||||
*/
|
||||
|
Reference in New Issue
Block a user