Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deps-packaging/apache/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ build-stamp:
dh_testdir

patch -p0 < $(CURDIR)/apachectl.patch

# Fixed implicit declaration of GNU extension gettid() (See ENT-13084)
patch -p1 < $(CURDIR)/fixed-implicit-decl-gettid.patch

./configure \
--prefix=$(PREFIX)/httpd \
--enable-so \
Expand Down
19 changes: 19 additions & 0 deletions deps-packaging/apache/fixed-implicit-decl-gettid.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff -ruN httpd-2.4.63/server/log.c httpd-2.4.63-modified/server/log.c
--- httpd-2.4.63/server/log.c 2024-06-21 16:31:54.000000000 +0200
+++ httpd-2.4.63-modified/server/log.c 2025-06-26 15:58:03.168415807 +0200
@@ -633,11 +633,11 @@
#endif
#if defined(HAVE_GETTID) || defined(HAVE_SYS_GETTID)
if (arg && *arg == 'g') {
-#ifdef HAVE_GETTID
- pid_t tid = gettid();
-#else
+// #ifdef HAVE_GETTID
+// pid_t tid = gettid();
+// #else
pid_t tid = syscall(SYS_gettid);
-#endif
+// #endif
if (tid == -1)
return 0;
return apr_snprintf(buf, buflen, "%"APR_PID_T_FMT, tid);
Loading