[libmusicbrainz4] Add forgotten patch

Christophe Fergeau teuf at fedoraproject.org
Tue Mar 6 22:13:33 UTC 2012


commit 57179a451687b707be1ba6cb35646de5bdae7893
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Tue Mar 6 23:11:13 2012 +0100

    Add forgotten patch

 ...-sure-gcc-4.7-can-find-usleep-declaration.patch |   28 ++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch b/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch
new file mode 100644
index 0000000..e1c099a
--- /dev/null
+++ b/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch
@@ -0,0 +1,28 @@
+From 64c68ad42a9089c92dfa4e74f55b6c1b65b8f11c Mon Sep 17 00:00:00 2001
+From: Christophe Fergeau <cfergeau at redhat.com>
+Date: Sun, 4 Mar 2012 14:32:49 +0100
+Subject: [PATCH] Make sure gcc 4.7 can find usleep declaration
+
+Without this, compilation fails with:
+
+libmusicbrainz-4.0.0/src/Query.cc: In member function 'void MusicBrainz4::CQuery::WaitRequest() const':
+libmusicbrainz-4.0.0/src/Query.cc:295:19: error: 'usleep' was not declared in this scope
+---
+ src/Query.cc |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/src/Query.cc b/src/Query.cc
+index 5f5934f..9332346 100644
+--- a/src/Query.cc
++++ b/src/Query.cc
+@@ -33,6 +33,7 @@
+ 
+ #include <string.h>
+ #include <sys/time.h>
++#include <unistd.h>
+ 
+ #include <ne_uri.h>
+ 
+-- 
+1.7.7.6
+


More information about the scm-commits mailing list