[issue7900] posix.getgroups() failure on Mac OS X

Martin v. Löwis report at bugs.python.org
Tue Jun 22 23:46:02 CEST 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

Here is a (untested) work-around that won't require undefining _DARWIN_C_SOURCE: After all includes, say

#ifdef __APPLE__
int	 posix_getgroups(int, gid_t []) __asm("_getgroups");
#define getgroups posix_getgroups
#endif

This should cause linking to the same symbol as without _DARWIN_UNLIMITED_GETGROUPS/_DARWIN_C_SOURCE

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7900>
_______________________________________


More information about the Python-bugs-list mailing list