]> git.pld-linux.org Git - packages/cherokee.git/commitdiff
- compilation fix for x32
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Thu, 23 Apr 2015 11:37:40 +0000 (11:37 +0000)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Thu, 23 Apr 2015 11:37:40 +0000 (11:37 +0000)
cherokee.spec
time_t_x32.patch [new file with mode: 0644]

index 8d9ae98326b82fbec15ba9ed01b031b363f4dc67..566c533d8bdd87614664bf841993e538b803f196 100644 (file)
@@ -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 (file)
index 0000000..0c58a59
--- /dev/null
@@ -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
This page took 0.128403 seconds and 4 git commands to generate.