From: Ken Raeburn Date: Sat, 12 Jun 2004 01:11:15 +0000 (+0000) Subject: * pty-int.h (_AIX && _THREAD_SAFE): Undefine _THREAD_SAFE X-Git-Tag: krb5-1.4-beta1~337 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9b4c59817b270c251030ad9051174e519561ec30;p=krb5.git * pty-int.h (_AIX && _THREAD_SAFE): Undefine _THREAD_SAFE git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16439 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index ecaa7205d..bcca22493 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,7 @@ +2004-06-11 Ken Raeburn + + * pty-int.h (_AIX && _THREAD_SAFE): Undefine _THREAD_SAFE. + 2004-06-04 Ken Raeburn * Makefile.in (LIBBASE): Renamed from LIB. diff --git a/src/util/pty/pty-int.h b/src/util/pty/pty-int.h index f04b5a230..f43f4b0b3 100644 --- a/src/util/pty/pty-int.h +++ b/src/util/pty/pty-int.h @@ -2,6 +2,21 @@ #ifndef __PTY_INT_H__ #include #include + +#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 #endif