Mailing List Archive

svn commit: r1912496 - /perl/embperl/trunk/mod_embperl.c
Author: richter
Date: Sat Sep 23 22:08:37 2023
New Revision: 1912496

URL: http://svn.apache.org/viewvc?rev=1912496&view=rev
Log:
Add gettid patch

Modified:
perl/embperl/trunk/mod_embperl.c

Modified: perl/embperl/trunk/mod_embperl.c
URL: http://svn.apache.org/viewvc/perl/embperl/trunk/mod_embperl.c?rev=1912496&r1=1912495&r2=1912496&view=diff
==============================================================================
--- perl/embperl/trunk/mod_embperl.c (original)
+++ perl/embperl/trunk/mod_embperl.c Sat Sep 23 22:08:37 2023
@@ -33,6 +33,8 @@
#undef getpid

/* define get thread id if not already done by Apache */
+/* 05/06/23: Marcus Doemling: do not define gettid for glibc >= 2.30 */
+#if !defined(_GNU_SOURCE) || !defined(__GLIBC__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 30)
#ifndef gettid
#ifdef WIN32
#define gettid GetCurrentThreadId
@@ -43,6 +45,7 @@ int gettid()
}
#endif
#endif
+#endif

#ifndef APACHE2
/* from mod_perl 1.x */



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-cvs-help@perl.apache.org