c24e387462
Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busy box. Alpine is therefor the most logical OS base for Docker Images. Although it does not fix #1181 completely, it helps to overcome the problems of building the PSOL on Alpine,
12 lines
421 B
Diff
12 lines
421 B
Diff
--- a/pagespeed/kernel/thread/pthread_rw_lock.cc
|
|
+++ b/pagespeed/kernel/thread/pthread_rw_lock.cc
|
|
@@ -31,7 +31,7 @@
|
|
//
|
|
// Other OS's (FreeBSD, Darwin, OpenSolaris) documentation suggests
|
|
// that they prefer writers by default.
|
|
-#ifdef linux
|
|
+#if defined(linux) && defined(__GLIBC__)
|
|
pthread_rwlockattr_setkind_np(&attr_,
|
|
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP);
|
|
#endif
|