linux-glibc22-has-pthread-attr-setstacksize-20001201
authorDerrick Brashear <shadow@dementia.org>
Fri, 1 Dec 2000 23:11:06 +0000 (23:11 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 1 Dec 2000 23:11:06 +0000 (23:11 +0000)
Newer glibc includes this function, and this conflicts with a header

src/afs/UKERNEL/sysincludes.h

index 177df7d..2a5e935 100644 (file)
 #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