From cd76e452be7611ec07fbc2fb3a0b98d75a63ab769985a226759ad402781ec9e7 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 25 Sep 2014 08:23:48 +0000 Subject: [PATCH] Accepting request 252166 from home:Andreas_Schwab:Factory - include-config-h.patch: always include "config.h" first OBS-URL: https://build.opensuse.org/request/show/252166 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmtp?expand=0&rev=69 --- include-config-h.patch | 12 ++++++++++++ libmtp.changes | 5 +++++ libmtp.spec | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 include-config-h.patch diff --git a/include-config-h.patch b/include-config-h.patch new file mode 100644 index 0000000..15e9061 --- /dev/null +++ b/include-config-h.patch @@ -0,0 +1,12 @@ +Index: libmtp-1.1.7/src/util.c +=================================================================== +--- libmtp-1.1.7.orig/src/util.c ++++ libmtp-1.1.7/src/util.c +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include "config.h" + #include "libmtp.h" + #include "util.h" + diff --git a/libmtp.changes b/libmtp.changes index d9d5127..ea145a0 100644 --- a/libmtp.changes +++ b/libmtp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 25 08:02:46 UTC 2014 - schwab@suse.de + +- include-config-h.patch: always include "config.h" first + ------------------------------------------------------------------- Tue Aug 26 06:31:36 UTC 2014 - meissner@suse.com diff --git a/libmtp.spec b/libmtp.spec index 0bc63bd..53ac912 100644 --- a/libmtp.spec +++ b/libmtp.spec @@ -30,6 +30,7 @@ Version: 1.1.7 Release: 0 %define sonum 9 Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz +Patch0: include-config-h.patch # from git 1a2669c6df6c093aec38c0c99a21438d74ccdf33 BuildRoot: %{_tmppath}/%{name}-%{version}-build %{!?_udevrulesdir: %global _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d } @@ -77,6 +78,7 @@ Transfer Protocol) authored by Microsoft. %prep %setup -q +%patch0 -p1 %build echo 'HTML_TIMESTAMP=NO' >> doc/Doxyfile.in