diff --git a/gnome-user-share-includes.patch b/gnome-user-share-includes.patch new file mode 100644 index 0000000..e00d6cc --- /dev/null +++ b/gnome-user-share-includes.patch @@ -0,0 +1,24 @@ +From 7531029125b292fa4843bd3e253b3b18a60806eb Mon Sep 17 00:00:00 2001 +From: Dominique Leuenberger +Date: Sun, 27 Nov 2011 21:01:18 +0100 +Subject: [PATCH] Include string.h in order to have strcmp defined. + +--- + src/user_share-common.c | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/src/user_share-common.c b/src/user_share-common.c +index 31389eb..614ffb1 100644 +--- a/src/user_share-common.c ++++ b/src/user_share-common.c +@@ -23,6 +23,7 @@ + */ + + #include "user_share-common.h" ++#include // For strcmp + + static char * + lookup_special_dir (GUserDirectory directory, +-- +1.7.7 + diff --git a/gnome-user-share.changes b/gnome-user-share.changes index 7ec7751..fa1ddb2 100644 --- a/gnome-user-share.changes +++ b/gnome-user-share.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Nov 27 20:02:23 UTC 2011 - dimstar@opensuse.org + +- Add gnome-user-share-includes.patch: Include string.h to have + strcmp defined. + ------------------------------------------------------------------- Fri Oct 28 13:52:30 UTC 2011 - badshah400@gmail.com diff --git a/gnome-user-share.spec b/gnome-user-share.spec index 8d3d777..1f8ffa8 100644 --- a/gnome-user-share.spec +++ b/gnome-user-share.spec @@ -24,6 +24,8 @@ Release: 1 License: GPLv2+ Group: Productivity/Networking/File-Sharing Source: http://download.gnome.org/sources/gnome-user-share/3.0/%{name}-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM gnome-user-share-includes.patch bgo#664929 dimstar@opensuse.org -- Include string.h in order to have strcmp defined. +Patch0: gnome-user-share-includes.patch # PATCH-FIX-OPENSUSE gnome-user-share-soft-dep-apache.patch vuntz@novell.com -- Hide apache option in the UI if it's not available Patch3: gnome-user-share-soft-dep-apache.patch Url: http://www.gnome.org/ @@ -67,6 +69,7 @@ The program also allows to share files using ObexFTP over Bluetooth. %prep %setup -q translation-update-upstream +%patch0 -p1 %patch3 -p1 %build