]> git.pld-linux.org Git - packages/apache1.git/blame - apache-std.patch
- rel 14; fix build (and modules builds) under gcc 5
[packages/apache1.git] / apache-std.patch
CommitLineData
4bcbfb89
AM
1From: Salvador Ortiz Garcia <sog@msg.com.mx>
2To: dev@perl.apache.org
3Date: Sat, 29 Nov 2008 04:20:51 -0600
4Message-Id: <1227954051.4548.162.camel@monica.msg.com.mx>
5
6Hi all,
7
8This afternoon I try to compile my standard bundle (mod_perl 1.30,
9apache 1.3.41, libapreq-1.33, mod_ssl-2.8.31) in Fedora 10 that ships
10with gcc 4.3.2 only to discover that the change announced in
11<http://www.gnu.org/software/gcc/gcc-4.2/changes.html> broke the
12compilation of apache-1.3.41/src/os/unix/os-inline.c when using -std=c99
13(default for Fedora's perl)
14
15I known that the problem is apache related, not mod_perl's, but there
16are many mod_perl 1.x users out there that can be in trouble.
17
18The attached patch fixes the problem.
19
20Any one have contacts with legacy apache maintainers?
21
22Regards.
23
24Salvador Ortiz.
25
26========= CUT ======
27--- src/os/unix/os.h.orig 2008-11-29 00:11:23.000000000 -0600
28+++ src/os/unix/os.h 2008-11-29 00:15:15.000000000 -0600
29@@ -33,7 +33,12 @@
30 /* Compiler supports inline, so include the inlineable functions as
31 * part of the header
32 */
33+#ifdef __GNUC_STDC_INLINE__
34+#define INLINE extern ap_inline __attribute__((gnu_inline))
35+#else
36 #define INLINE extern ap_inline
37+#endif
38+
39
40 INLINE int ap_os_is_path_absolute(const char *file);
41
42
43
This page took 0.035201 seconds and 4 git commands to generate.