compat/unistd.h loads over unistd.h on AIX
Closed / Wont Fix664358ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 22 years ago
Descriptionplain2003-01-08 12:49:30
The compat/unistd.h is protected against double loading with a construct #ifndef _UNISTD #define _UNISTD .... #endif AIX xlC (Visual Age for C) uses the same mechanism but a different identifier: _H_UNISTD So I'd propose to use this as well nested into the original construct to protect from loading unistd.h #ifndef _UNISTD #define _UNISTD #ifndef _H_UNISTD #define _H_UNISTD .... #endif /* _H_UNISTD */ #endif /* _UNISTD */ or alternatively if no compatibility problems come up with that use #if !defined(_UNISTD) && !defined(_H_UNISTD) #define _H_UNISTD #define _UNISTD .... #endif Don't know which is better.
dgp Ticket [664358ffff]: 1 change
[History diff]2003-11-13 08:45:23
hobbsplain2005-05-31 10:06:49
Logged In: YES user_id=72656 What are the build issues that relate to this? I build on many AIX variants without issue.
hobbs Ticket [664358ffff]: 2 changes
[History diff]2005-05-31 10:06:50
Log in (anonymous is fine) to add a comment.