aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/libssh/fix-gcc-5-compile.patch
diff options
context:
space:
mode:
authorWolfgang Schupp <w.schupp@a1.net>2015-11-09 18:29:21 +0100
committerWolfgang Schupp <w.schupp@a1.net>2015-11-09 18:29:21 +0100
commitb44c403d2b12377b747132c3b2e2b7185ac425cf (patch)
tree3dc776411dbf8f1b8597e9d7052fcec17dcb308b /tools/depends/target/libssh/fix-gcc-5-compile.patch
parent02fa942e40bc6ecfb0a9151c67c353b11cd1bee5 (diff)
parent50614a95fa58a809ffeed240af88909596ab4030 (diff)
Merge pull request #8350 from AlwinEsch/fix-builddep
[builddep] fix build Ubuntu 16.4 Xenial
Diffstat (limited to 'tools/depends/target/libssh/fix-gcc-5-compile.patch')
-rw-r--r--tools/depends/target/libssh/fix-gcc-5-compile.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/tools/depends/target/libssh/fix-gcc-5-compile.patch b/tools/depends/target/libssh/fix-gcc-5-compile.patch
new file mode 100644
index 0000000000..d015a9be6c
--- /dev/null
+++ b/tools/depends/target/libssh/fix-gcc-5-compile.patch
@@ -0,0 +1,55 @@
+--- include/libssh/pki_priv.h 2015-11-05 09:39:40.011875890 +0100
++++ include/libssh/pki_priv.h 2015-11-05 09:39:34.151849945 +0100
+@@ -29,7 +29,7 @@
+ #define ECDSA_HEADER_END "-----END EC PRIVATE KEY-----"
+
+ #define ssh_pki_log(...) \
+- _ssh_pki_log(__FUNCTION__, __VA_ARGS__)
++ _ssh_pki_log(__extension__ __FUNCTION__, __VA_ARGS__)
+ void _ssh_pki_log(const char *function,
+ const char *format, ...) PRINTF_ATTRIBUTE(2, 3);
+
+--- include/libssh/priv.h 2015-11-05 09:39:40.011875890 +0100
++++ include/libssh/priv.h 2015-11-05 09:41:01.272239916 +0100
+@@ -179,7 +179,7 @@
+ const char *function,
+ const char *buffer);
+ #define SSH_LOG(priority, ...) \
+- _ssh_log(priority, __FUNCTION__, __VA_ARGS__)
++ _ssh_log(priority, __extension__ __FUNCTION__, __VA_ARGS__)
+
+ /* LEGACY */
+ void ssh_log_common(struct ssh_common_struct *common,
+@@ -197,18 +197,18 @@
+ };
+
+ #define ssh_set_error(error, code, ...) \
+- _ssh_set_error(error, code, __FUNCTION__, __VA_ARGS__)
++ _ssh_set_error(error, code, __extension__ __FUNCTION__, __VA_ARGS__)
+ void _ssh_set_error(void *error,
+ int code,
+ const char *function,
+ const char *descr, ...) PRINTF_ATTRIBUTE(4, 5);
+
+ #define ssh_set_error_oom(error) \
+- _ssh_set_error_oom(error, __FUNCTION__)
++ _ssh_set_error_oom(error, __extension__ __FUNCTION__)
+ void _ssh_set_error_oom(void *error, const char *function);
+
+ #define ssh_set_error_invalid(error) \
+- _ssh_set_error_invalid(error, __FUNCTION__)
++ _ssh_set_error_invalid(error, __extension__ __FUNCTION__)
+ void _ssh_set_error_invalid(void *error, const char *function);
+
+
+--- src/auth.c 2014-12-27 11:30:13.000000000 +0100
++++ src/auth.c 2015-11-05 09:42:41.732698584 +0100
+@@ -1548,7 +1548,7 @@
+ * This should not happen
+ */
+ rc = SSH_AUTH_ERROR;
+- ssh_set_error(session,SSH_FATAL,"Invalid state in %s", __FUNCTION__);
++ ssh_set_error(session,SSH_FATAL,"Invalid state in %s", __extension__ __FUNCTION__);
+ }
+ return rc;
+ }