From 590970875bb115d0ae1c8b13a67f13c5471d3842979e20bf309b54d691f32a90 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Fri, 6 Nov 2009 23:22:14 +0000 Subject: [PATCH] add patch to fix build on SLE9 OBS-URL: https://build.opensuse.org/package/show/network:utilities/libmetalink?expand=0&rev=4 --- libmetalink-llong_max.patch | 12 ++++++++++++ libmetalink.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 libmetalink-llong_max.patch diff --git a/libmetalink-llong_max.patch b/libmetalink-llong_max.patch new file mode 100644 index 0000000..d63d4dd --- /dev/null +++ b/libmetalink-llong_max.patch @@ -0,0 +1,12 @@ +--- lib/metalink/metalink_pstate.c.orig 2009-11-07 00:19:18.000000000 +0100 ++++ lib/metalink/metalink_pstate.c 2009-11-07 00:19:38.000000000 +0100 +@@ -30,6 +30,9 @@ + #include + #include + #include ++#ifndef LLONG_MAX ++#define LLONG_MAX 9223372036854775807LL ++#endif + + #include "metalink_pstm.h" + diff --git a/libmetalink.spec b/libmetalink.spec index 77f0492..aeb998d 100644 --- a/libmetalink.spec +++ b/libmetalink.spec @@ -7,6 +7,7 @@ Version: 0.0.3 Release: 0 Summary: Metalink Library Source: http://launchpad.net/libmetalink/trunk/%{version}/+download/libmetalink-%{version}.tar.bz2 +Patch1: libmetalink-llong_max.patch URL: https://launchpad.net/libmetalink Group: System/Libraries License: MIT @@ -53,6 +54,7 @@ Metalink XML files. %prep %setup -q -n "libmetalink-%{version}" +%patch1 %if 0%{?suse_version} < 1000 %__sed -i 's|-fvisibility=hidden||g' lib/metalink/Makefile*