diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-06-12 01:11:15 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-06-12 01:11:15 +0000 |
commit | 9b4c59817b270c251030ad9051174e519561ec30 (patch) | |
tree | c2f9a9130521cff9d8c8536b14c335763ec54bc1 /src | |
parent | 530867783150fa3293f190322a25dca0ffb60281 (diff) | |
download | krb5-9b4c59817b270c251030ad9051174e519561ec30.tar.gz krb5-9b4c59817b270c251030ad9051174e519561ec30.tar.xz krb5-9b4c59817b270c251030ad9051174e519561ec30.zip |
* pty-int.h (_AIX && _THREAD_SAFE): Undefine _THREAD_SAFE
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16439 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/util/pty/ChangeLog | 4 | ||||
-rw-r--r-- | src/util/pty/pty-int.h | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index ecaa7205d6..bcca22493c 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,7 @@ +2004-06-11 Ken Raeburn <raeburn@mit.edu> + + * pty-int.h (_AIX && _THREAD_SAFE): Undefine _THREAD_SAFE. + 2004-06-04 Ken Raeburn <raeburn@mit.edu> * Makefile.in (LIBBASE): Renamed from LIB. diff --git a/src/util/pty/pty-int.h b/src/util/pty/pty-int.h index f04b5a2308..f43f4b0b36 100644 --- a/src/util/pty/pty-int.h +++ b/src/util/pty/pty-int.h @@ -2,6 +2,21 @@ #ifndef __PTY_INT_H__ #include <pty_err.h> #include <sys/types.h> + +#if defined(_AIX) && defined(_THREAD_SAFE) +/* On AIX 4.3.3, both utmp.h and utmpx.h will define struct utmp_data, + and they'll define them differently, if _THREAD_SAFE is defined. + + We don't actually care about this library being thread-safe, but + for various reasons we do use both versions of the interface at the + moment. + + So trick the system headers into not "helping" us in that area. + + This is an ugly hack, and shouldn't be needed. Bleah. */ +# undef _THREAD_SAFE +#endif + #ifdef HAVE_UTMP_H #include <utmp.h> #endif |