add patch to fix build on SLE9
OBS-URL: https://build.opensuse.org/package/show/network:utilities/libmetalink?expand=0&rev=4
This commit is contained in:
parent
5cafaf7df5
commit
590970875b
12
libmetalink-llong_max.patch
Normal file
12
libmetalink-llong_max.patch
Normal file
@ -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 <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
+#ifndef LLONG_MAX
|
||||
+#define LLONG_MAX 9223372036854775807LL
|
||||
+#endif
|
||||
|
||||
#include "metalink_pstm.h"
|
||||
|
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user