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*