summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-02-06 17:39:42 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-02-06 17:39:42 +0800
commit79e007d509f0813b6e1fdf24a1bb374a459aa03d (patch)
tree54bb20faf941c5e6af4104374a24b4d93cf1cca8
parent44ad61c9c426eea5c9c114d567bc6b0ca3f839bc (diff)
downloadmeta-selinux-79e007d509f0813b6e1fdf24a1bb374a459aa03d.tar.gz
ustr: Fix "__va_copy not defined" build warnings.
-rw-r--r--recipes-security/ustr/ustr/ustr-fix__va_copy-not-defined.patch26
-rw-r--r--recipes-security/ustr/ustr_1.0.4.bb3
2 files changed, 28 insertions, 1 deletions
diff --git a/recipes-security/ustr/ustr/ustr-fix__va_copy-not-defined.patch b/recipes-security/ustr/ustr/ustr-fix__va_copy-not-defined.patch
new file mode 100644
index 0000000..cd5ef87
--- /dev/null
+++ b/recipes-security/ustr/ustr/ustr-fix__va_copy-not-defined.patch
@@ -0,0 +1,26 @@
1From c35a8949e305666ffe7fdc89f7cf506c6e6821d0 Mon Sep 17 00:00:00 2001
2From: Xin Ouyang <Xin.Ouyang@windriver.com>
3Date: Fri, 3 Feb 2012 11:28:21 +0800
4Subject: [PATCH] Fix "__va_copy" not defined warning.
5
6ustr-compiler.h:19:16: warning: "__va_copy" is not defined [-Wundef]
7---
8 ustr-compiler.h | 2 +-
9 1 files changed, 1 insertions(+), 1 deletions(-)
10
11diff --git a/ustr-compiler.h b/ustr-compiler.h
12index 9e71276..642e6e8 100644
13--- a/ustr-compiler.h
14+++ b/ustr-compiler.h
15@@ -16,7 +16,7 @@
16 #ifdef va_copy
17 # define USTR_CONF_HAVE_VA_COPY 1
18 # define USTR__VA_COPY(x, y) va_copy(x, y)
19-#elif __va_copy
20+#elif defined(__va_copy)
21 # define USTR_CONF_HAVE_VA_COPY 1
22 # define USTR__VA_COPY(x, y) __va_copy(x, y)
23 #else
24--
251.7.5.4
26
diff --git a/recipes-security/ustr/ustr_1.0.4.bb b/recipes-security/ustr/ustr_1.0.4.bb
index 5cef95d..e2b45b1 100644
--- a/recipes-security/ustr/ustr_1.0.4.bb
+++ b/recipes-security/ustr/ustr_1.0.4.bb
@@ -12,7 +12,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c79c6e2ae13418d16d7dc82df960a1e7 \
12 file://LICENSE_MIT;md5=c61e779b782608472bd87593c3c3916f" 12 file://LICENSE_MIT;md5=c61e779b782608472bd87593c3c3916f"
13 13
14SRC_URI = "http://www.and.org/ustr/1.0.4/ustr-1.0.4.tar.bz2 \ 14SRC_URI = "http://www.and.org/ustr/1.0.4/ustr-1.0.4.tar.bz2 \
15 file://ustr-makefile-fix.patch;patch=1" 15 file://ustr-makefile-fix.patch;patch=1 \
16 file://ustr-fix__va_copy-not-defined.patch;patch=2"
16SRC_URI[md5sum] = "93147d9f0c9765d4cd0f04f7e44bdfce" 17SRC_URI[md5sum] = "93147d9f0c9765d4cd0f04f7e44bdfce"
17SRC_URI[sha256sum] = "3daf6eae9f78de1e872c0b2b83cce35515b94d4bb8a074e48f331fd99e1fc2c4" 18SRC_URI[sha256sum] = "3daf6eae9f78de1e872c0b2b83cce35515b94d4bb8a074e48f331fd99e1fc2c4"
18 19