From: Derrick Brashear Date: Fri, 1 Dec 2000 23:11:06 +0000 (+0000) Subject: linux-glibc22-has-pthread-attr-setstacksize-20001201 X-Git-Tag: BP-openafs-stable-1_0_x~7 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=fd0e5208b7471174d1cb30e80f166d65c866bcb1 linux-glibc22-has-pthread-attr-setstacksize-20001201 Newer glibc includes this function, and this conflicts with a header --- diff --git a/src/afs/UKERNEL/sysincludes.h b/src/afs/UKERNEL/sysincludes.h index 177df7d..2a5e935 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