[packages/cherokee] - compilation fix for x32

witekfl witekfl at pld-linux.org
Thu Apr 23 13:38:16 CEST 2015


commit 941aa632cdb277d46c4d27789a6a4d44a96c432d
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Thu Apr 23 11:37:40 2015 +0000

    - compilation fix for x32

 cherokee.spec    |  2 ++
 time_t_x32.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/cherokee.spec b/cherokee.spec
index 8d9ae98..566c533 100644
--- a/cherokee.spec
+++ b/cherokee.spec
@@ -28,6 +28,7 @@ Source4:	%{name}.service
 Patch0:		%{name}-config.patch
 Patch1:		%{name}-panic_path.patch
 Patch2:		ffmpeg0.11.patch
+Patch3:		time_t_x32.patch
 URL:		http://www.cherokee-project.com/
 %{?with_geoip:BuildRequires:	GeoIP-devel}
 BuildRequires:	autoconf
@@ -128,6 +129,7 @@ Biblioteki serwera WWW Cherokee.
 %patch0 -p1
 %patch1 -p1
 #%patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
diff --git a/time_t_x32.patch b/time_t_x32.patch
new file mode 100644
index 0000000..0c58a59
--- /dev/null
+++ b/time_t_x32.patch
@@ -0,0 +1,11 @@
+--- webserver-1.2.103/cherokee/common-internal.h.time	2015-04-23 11:22:07.000000000 +0000
++++ webserver-1.2.103/cherokee/common-internal.h	2015-04-23 11:24:56.000000000 +0000
+@@ -239,6 +239,8 @@ char *strcasestr(char *s, char *find);
+ #  define TIME_MAX ((time_t)INT_MAX)
+ # elif (SIZEOF_TIME_T == SIZEOF_LONG)
+ #  define TIME_MAX ((time_t)LONG_MAX)
++# elif (SIZEOF_TIME_T == SIZEOF_UNSIGNED_LONG_LONG) /* x32 */
++#  define TIME_MAX ((time_t)0x7fffffffffffffffL)
+ # else
+ #  error "Can't define TIME_MAX"
+ # endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cherokee.git/commitdiff/941aa632cdb277d46c4d27789a6a4d44a96c432d



More information about the pld-cvs-commit mailing list