diff options
| -rw-r--r-- | src/include/ChangeLog | 5 | ||||
| -rw-r--r-- | src/include/k5-thread.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index e76c0feb1d..be19937271 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,8 @@ +2004-05-12 Ken Raeburn <raeburn@mit.edu> + + * k5-thread.h: On IRIX, if gcc is older than v3, tell the user to + get a newer one, and error out. + 2004-05-05 Ken Raeburn <raeburn@mit.edu> * foreachaddr.c: Implementation moved to lib/krb5/os/localaddr.c. diff --git a/src/include/k5-thread.h b/src/include/k5-thread.h index 592b94fe68..d7a5b94354 100644 --- a/src/include/k5-thread.h +++ b/src/include/k5-thread.h @@ -228,7 +228,7 @@ typedef struct { assert(0==pthread_mutex_unlock(&(M)->lock)), \ 0) -#if defined(__mips) && defined(__sgi) && defined(_SYSTYPE_SVR4) +#if defined(__mips) && defined(__sgi) && (defined(_SYSTYPE_SVR4) || defined(__SYSTYPE_SVR4__)) /* IRIX 6.5 stub pthread support in libc is really annoying. The pthread_mutex_lock function returns ENOSYS for a program not linked against -lpthread. No link-time failure, no weak @@ -236,6 +236,9 @@ typedef struct { The C library doesn't provide pthread_once; we can use weak reference support for that. */ +#if defined(__GNUC__) && __GNUC__ < 3 +# error "Please update to a newer gcc with weak symbol support, reconfigure and recompile." +#endif #undef k5_mutex_lock #undef k5_mutex_unlock #define k5_mutex_lock(M) \ |
