OSSP CVS Repository |
![]() |
|
2005-Dec-31 17:24:07 by anonymous:by anonymous on 2005-Dec-31 17:24
A sufficient solution is to define _POSIX_SOURCE=1Apple's unistd.h has the following:
#ifndef _POSIX_C_SOURCE #ifndef _UUID_T #define _UUID_T typedef __darwin_uuid_t uuid_t; #endif /* _UUID_T */ #endif /* _POSIX_C_SOURCE */-- mefisk@gmail.com
by anonymous on 2006-Jan-20 23:15
2006-Jan-20 23:15:53 by anonymous:
I got the C library to compile by setting _POSIX_C_SOURCE, but not the Perl library. It seems that perl.h loads unistd.h, but if I define _POSIX_C_SOURCE before uuid.xs includes perl.h, I get all kinds of errors.Unfortunately, I think that the only solution is to give uuid_t another name. Maybe it can just be done where uuid_t is already defined elsewhere, and then dependent libraries would have to make the same test?
—Theory