diff options
author | Zentaro Kavanagh <zentaro@google.com> | 2016-11-16 18:21:13 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-11-16 18:21:13 -0500 |
commit | e506143656e90f7f705f9727d128d176e1700b2a (patch) | |
tree | eee298438228de44e3492bfc6c70ed857b7638e7 /app-crypt/mit-krb5/files | |
parent | app-crypt/rhash: Version bump to 1.3.4 (diff) | |
download | gentoo-e506143656e90f7f705f9727d128d176e1700b2a.tar.gz gentoo-e506143656e90f7f705f9727d128d176e1700b2a.tar.bz2 gentoo-e506143656e90f7f705f9727d128d176e1700b2a.zip |
app-crypt/mit-krb5: fix clang build due to ttyname redecl
Diffstat (limited to 'app-crypt/mit-krb5/files')
-rw-r--r-- | app-crypt/mit-krb5/files/mit-krb5-1.14.2-redeclared-ttyname.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.14.2-redeclared-ttyname.patch b/app-crypt/mit-krb5/files/mit-krb5-1.14.2-redeclared-ttyname.patch new file mode 100644 index 000000000000..a76cd3a7f843 --- /dev/null +++ b/app-crypt/mit-krb5/files/mit-krb5-1.14.2-redeclared-ttyname.patch @@ -0,0 +1,26 @@ +Fixes the redeclaration of ttyname which was preventing +enabling clang fortify. + +The error was; + +main.c:858:15: error: redeclaration of 'ttyname' must have the 'overloadable' attribute + char *p, *ttyname(); + ^ +/build/samus/usr/include/unistd.h:784:14: note: previous overload of function is here +extern char *ttyname (int __fd) __THROW __CLANG_NO_MANGLE (ttyname); + +https://github.com/krb5/krb5/pull/568 + +Patch by Zentaro Kavanagh <zentaro@google.com> + +--- clients/ksu/main.c ++++ clients/ksu/main.c +@@ -855,7 +855,7 @@ + + static char * ontty() + { +- char *p, *ttyname(); ++ char *p; + static char buf[MAXPATHLEN + 5]; + int result; + |