diff options
author | olli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2011-03-14 19:00:43 +0000 |
---|---|---|
committer | olli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2011-03-14 19:00:43 +0000 |
commit | 89bd460cb7617ce92c811d78daa6e62ac63d043e (patch) | |
tree | de2a9cf317e5804f3424aac6bb6438d671298a20 | |
parent | 30055a7102ff57b5baa23ed2ba530b9a06e77908 (diff) | |
download | ATCD-89bd460cb7617ce92c811d78daa6e62ac63d043e.tar.gz |
ChangeLogTag: Mon Mar 14 18:58:40 UTC 2011 Olli Savia <ops@iki.fi>
-rw-r--r-- | ACE/ChangeLog | 6 | ||||
-rw-r--r-- | ACE/ace/config-sunos5.5.h | 11 |
2 files changed, 8 insertions, 9 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 1c849a97419..e243b9a5469 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,9 @@ +Mon Mar 14 18:58:40 UTC 2011 Olli Savia <ops@iki.fi> + + * ace/config-sunos5.5.h: + Define _POSIX_PTHREAD_SEMANTICS if it not already set. + Hopefully fixes getpwnam_r() problems. + Mon Mar 14 11:01:41 UTC 2011 Olli Savia <ops@iki.fi> * ace/config-openvms.h: diff --git a/ACE/ace/config-sunos5.5.h b/ACE/ace/config-sunos5.5.h index 9b8b0d0f910..0b7c2c9f8e6 100644 --- a/ACE/ace/config-sunos5.5.h +++ b/ACE/ace/config-sunos5.5.h @@ -27,21 +27,14 @@ // Some SunOS releases define _POSIX_PTHREAD_SEMANTICS automatically. // We need to be check if the user has manually defined the macro before // including <sys/feature_tests.h>. -#if defined (_POSIX_PTHREAD_SEMANTICS) -# define ACE_HAS_POSIX_PTHREAD_SEMANTICS +#if !defined (_POSIX_PTHREAD_SEMANTICS) +# define _POSIX_PTHREAD_SEMANTICS #endif /* _POSIX_PTHREAD_SEMANTICS */ // Before we do anything, we should include <sys/feature_tests.h> to // ensure that things are set up properly. #include <sys/feature_tests.h> -// Some SunOS releases define _POSIX_PTHREAD_SEMANTICS automatically. -// We need to undef if the macro is set and not defined by the user. -#if defined (_POSIX_PTHREAD_SEMANTICS) && \ - !defined (ACE_HAS_POSIX_PTHREAD_SEMANTICS) -# undef _POSIX_PTHREAD_SEMANTICS -#endif /* _POSIX_PTHREAD_SEMANTICS && !ACE_HAS_POSIX_PTHREAD_SEMANTICS */ - // Sun has the posix defines so let this file sort out what Sun delivers #include "ace/config-posix.h" |