diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2004-05-13 02:24:29 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2004-05-13 02:24:29 +0000 |
| commit | da2b044954a8385b7add6e90a67bcfba988e2ee7 (patch) | |
| tree | be04160bd4bd5d8938db078ac8b11cff59834f50 /src/include/k5-thread.h | |
| parent | d89e2528cf2ca693b17f08b4afe9e645004c152c (diff) | |
| download | krb5-da2b044954a8385b7add6e90a67bcfba988e2ee7.tar.gz krb5-da2b044954a8385b7add6e90a67bcfba988e2ee7.tar.xz krb5-da2b044954a8385b7add6e90a67bcfba988e2ee7.zip | |
* k5-thread.h: On IRIX, if gcc is older than v3, tell the user to get a newer
one, and error out.
(We need weak reference support for pthread_once, gcc 2.95 doesn't
support them, but gcc 3, which has been out for nearly 3 years, does.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16329 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/k5-thread.h')
| -rw-r--r-- | src/include/k5-thread.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/k5-thread.h b/src/include/k5-thread.h index 592b94fe6..d7a5b9435 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) \ |
