Restore patch as arm64 build failed

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmowgli2?expand=0&rev=12
This commit is contained in:
Jan Engelhardt 2014-07-20 12:00:54 +00:00 committed by Git OBS Bridge
parent be6ddea651
commit 098951c961
3 changed files with 22 additions and 1 deletions

View File

@ -6,7 +6,6 @@ Sun Jul 20 11:22:14 UTC 2014 - jengelh@inai.de
* Add method to set SO_REUSEADDR on vio sockets
* eventloop: rename mowgli_eventloop_timer_t.when to
mowgli_eventloop_timer_t.deadline
- Remove platform.patch (no longer applicable)
-------------------------------------------------------------------
Mon Mar 3 21:46:30 UTC 2014 - jengelh@inai.de

View File

@ -29,6 +29,7 @@ Url: http://atheme.org/projects/libmowgli.html
#Git-Clone: git://github.com/atheme/libmowgli-2
#Snapshot: libmowgli-2.0.0-185-g7790ffd
Source: libmowgli-%version.tar.xz
Patch1: platform.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config
BuildRequires: xz
@ -76,6 +77,7 @@ This package holds the development files for libmowgli v2.
%prep
%setup -qn libmowgli-2
%patch -P 1 -p1
%build
if [ ! -e configure ]; then

20
platform.patch Normal file
View File

@ -0,0 +1,20 @@
From: Andreas Schwab <schwab@suse.de>
Date: Sun, 3 Mar 2013 20:19:46 +0000
---
src/libmowgli/platform/machine.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libmowgli-2/src/libmowgli/platform/machine.h
===================================================================
--- libmowgli-2.orig/src/libmowgli/platform/machine.h
+++ libmowgli-2/src/libmowgli/platform/machine.h
@@ -186,7 +186,7 @@
# if defined _LP64 || defined __LP64
# define MOWGLI_CPU_BITS 64
# define MOWGLI_CPU_BITS_64
-# elif
+# else
# define MOWGLI_CPU_BITS 32
# define MOWGLI_CPU_BITS_32
# endif