diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-07-26 11:58:11 -0700 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-09-08 16:38:58 -0400 |
commit | 64e1ba5bf78debdbb16b02b2f4909a1d4806022f (patch) | |
tree | 5f61195ff5d892a56df00a838f8ea60310f594d7 /meta-networking/recipes-support/libesmtp | |
parent | ee8959421c97425a045bfb9167d57537feb6a082 (diff) | |
download | meta-openembedded-64e1ba5bf78debdbb16b02b2f4909a1d4806022f.tar.gz |
libesmtp: Fix config.h define for snprintf detection
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/libesmtp')
-rw-r--r-- | meta-networking/recipes-support/libesmtp/libesmtp/snprintf.patch | 19 | ||||
-rw-r--r-- | meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb | 4 |
2 files changed, 22 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/libesmtp/libesmtp/snprintf.patch b/meta-networking/recipes-support/libesmtp/libesmtp/snprintf.patch new file mode 100644 index 000000000..d0d203ead --- /dev/null +++ b/meta-networking/recipes-support/libesmtp/libesmtp/snprintf.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Use HAVE_WORKING_SNPRINTF to check for snprintf() | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
6 | |||
7 | Index: libesmtp-1.0.6/missing.h | ||
8 | =================================================================== | ||
9 | --- libesmtp-1.0.6.orig/missing.h | ||
10 | +++ libesmtp-1.0.6/missing.h | ||
11 | @@ -43,7 +43,7 @@ int strncasecmp (const char *a, const ch | ||
12 | void *memrchr (const void *a, int c, size_t len); | ||
13 | #endif | ||
14 | |||
15 | -#ifndef HAVE_SNPRINTF | ||
16 | +#ifndef HAVE_WORKING_SNPRINTF | ||
17 | #include <sys/types.h> | ||
18 | int snprintf(char *s, size_t n, const char *format, ...); | ||
19 | #endif | ||
diff --git a/meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb b/meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb index 7ddf591eb..71c5d940b 100644 --- a/meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb +++ b/meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb | |||
@@ -9,7 +9,9 @@ SECTION = "libs" | |||
9 | DEPENDS = "openssl" | 9 | DEPENDS = "openssl" |
10 | 10 | ||
11 | SRC_URI = "http://www.stafford.uklinux.net/libesmtp/libesmtp-${PV}.tar.bz2 \ | 11 | SRC_URI = "http://www.stafford.uklinux.net/libesmtp/libesmtp-${PV}.tar.bz2 \ |
12 | file://include-topdir.patch" | 12 | file://include-topdir.patch \ |
13 | file://snprintf.patch \ | ||
14 | " | ||
13 | SRC_URI[md5sum] = "bf3915e627fd8f35524a8fdfeed979c8" | 15 | SRC_URI[md5sum] = "bf3915e627fd8f35524a8fdfeed979c8" |
14 | SRC_URI[sha256sum] = "d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b" | 16 | SRC_URI[sha256sum] = "d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b" |
15 | 17 | ||