git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0f9376f
)
linux-glibc22-has-pthread-attr-setstacksize-20001201
author
Derrick Brashear
<shadow@dementia.org>
Fri, 1 Dec 2000 23:11:06 +0000 (23:11 +0000)
committer
Derrick 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
patch
|
blob
|
history
diff --git
a/src/afs/UKERNEL/sysincludes.h
b/src/afs/UKERNEL/sysincludes.h
index
177df7d
..
2a5e935
100644
(file)
--- 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