[Pkg-electronics-commits] [covered] 02/05: Fix FTBFS with clang
أحمد المحمودي (Ahmed El-Mahmoudy)
aelmahmoudy at sabily.org
Tue Aug 12 10:35:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
aelmahmoudy-guest pushed a commit to branch master
in repository covered.
commit be9cfadc9637793eed47dd505fa67554a976f873
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>
Date: Mon Aug 11 13:58:01 2014 +0300
Fix FTBFS with clang
Fixed undefined reference error in: src/lxt2_read.c, src/lxt2_read.h
Closes: #757263
Thanks: Arthur Marble <arthur at info9.net>
---
debian/patches/clang-ftbfs.diff | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 28 insertions(+)
diff --git a/debian/patches/clang-ftbfs.diff b/debian/patches/clang-ftbfs.diff
new file mode 100644
index 0000000..be668fe
--- /dev/null
+++ b/debian/patches/clang-ftbfs.diff
@@ -0,0 +1,27 @@
+Description: Fix FTBFS with clang
+Bug-Debian: http://bugs.debian.org/757263
+Bug: https://sourceforge.net/p/covered/patches/2/
+Forwarded: https://sourceforge.net/p/covered/patches/2/
+
+--- a/src/lxt2_read.h
++++ b/src/lxt2_read.h
+@@ -47,11 +47,15 @@
+ #include <zlib.h>
+ #endif
+
+-#ifdef __GNUC__
+-#define _LXT2_RD_INLINE inline
+-#else
++#ifdef __clang__
+ #define _LXT2_RD_INLINE
+-#endif
++#else // __clang__
++# ifdef __GNUC__
++# define _LXT2_RD_INLINE inline
++# else
++# define _LXT2_RD_INLINE
++# endif
++#endif // __clang__
+
+ #define LXT2_RDLOAD "LXTLOAD | "
+
diff --git a/debian/patches/series b/debian/patches/series
index aef844d..4eb88b5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
outdated_config.diff
manpage.diff
+clang-ftbfs.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/covered.git
More information about the Pkg-electronics-commits
mailing list