From fd0e5208b7471174d1cb30e80f166d65c866bcb1 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 1 Dec 2000 23:11:06 +0000 Subject: [PATCH] linux-glibc22-has-pthread-attr-setstacksize-20001201 Newer glibc includes this function, and this conflicts with a header --- src/afs/UKERNEL/sysincludes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afs/UKERNEL/sysincludes.h b/src/afs/UKERNEL/sysincludes.h index 177df7d24..2a5e9352d 100644 --- a/src/afs/UKERNEL/sysincludes.h +++ b/src/afs/UKERNEL/sysincludes.h @@ -112,8 +112,8 @@ #define FREAD 0x0001 #endif /* AFS_USR_LINUX22_ENV */ -/* this is necessary for client programs as well as the library itself */ -#if defined(AFS_LINUX22_ENV) || defined(AFS_USR_LINUX22_ENV) +/* glibc 2.2 has pthread_attr_setstacksize */ +#if defined(AFS_LINUX22_ENV) || defined(AFS_USR_LINUX22_ENV) && (__GLIBC_MINOR__ < 2) #define pthread_attr_setstacksize(a,b) 0 #endif -- 2.39.5