mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
gettext: Drop overloadable attibute for getcwd declaration
(From OE-Core rev: d922ccdb79a386c2ea6004520d76277bc8867fcb) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5b5b17549e
commit
7c6d2f093b
|
@ -1,22 +0,0 @@
|
||||||
Use overloadable attribute to aid clang
|
|
||||||
|
|
||||||
Fixes
|
|
||||||
dcigettext.c:147:7: error: redeclaration of 'getcwd' must have the 'overloadable' attribute
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
--- a/gettext-runtime/intl/dcigettext.c
|
|
||||||
+++ b/gettext-runtime/intl/dcigettext.c
|
|
||||||
@@ -144,7 +144,11 @@ char *getwd ();
|
|
||||||
# if VMS
|
|
||||||
# define getcwd(buf, max) (getcwd) (buf, max, 0)
|
|
||||||
# else
|
|
||||||
-char *getcwd ();
|
|
||||||
+char
|
|
||||||
+#ifdef __clang__
|
|
||||||
+__attribute__((overloadable))
|
|
||||||
+#endif
|
|
||||||
+*getcwd ();
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
# ifndef HAVE_STPCPY
|
|
|
@ -25,9 +25,7 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
|
||||||
file://serial-tests-config.patch \
|
file://serial-tests-config.patch \
|
||||||
file://0001-msgmerge-Fix-behaviour-of-for-msgfmt-on-PO-files-wit.patch \
|
file://0001-msgmerge-Fix-behaviour-of-for-msgfmt-on-PO-files-wit.patch \
|
||||||
file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \
|
file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \
|
||||||
file://overloadable.patch \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "bb5b0c0caa028105f3ca1905ddc306e2"
|
SRC_URI[md5sum] = "bb5b0c0caa028105f3ca1905ddc306e2"
|
||||||
SRC_URI[sha256sum] = "66415634c6e8c3fa8b71362879ec7575e27da43da562c798a8a2f223e6e47f5c"
|
SRC_URI[sha256sum] = "66415634c6e8c3fa8b71362879ec7575e27da43da562c798a8a2f223e6e47f5c"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user