mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-15 06:45:32 +01:00
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>
This commit is contained in:
parent
ee8959421c
commit
64e1ba5bf7
|
|
@ -0,0 +1,19 @@
|
|||
Use HAVE_WORKING_SNPRINTF to check for snprintf()
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
Index: libesmtp-1.0.6/missing.h
|
||||
===================================================================
|
||||
--- libesmtp-1.0.6.orig/missing.h
|
||||
+++ libesmtp-1.0.6/missing.h
|
||||
@@ -43,7 +43,7 @@ int strncasecmp (const char *a, const ch
|
||||
void *memrchr (const void *a, int c, size_t len);
|
||||
#endif
|
||||
|
||||
-#ifndef HAVE_SNPRINTF
|
||||
+#ifndef HAVE_WORKING_SNPRINTF
|
||||
#include <sys/types.h>
|
||||
int snprintf(char *s, size_t n, const char *format, ...);
|
||||
#endif
|
||||
|
|
@ -9,7 +9,9 @@ SECTION = "libs"
|
|||
DEPENDS = "openssl"
|
||||
|
||||
SRC_URI = "http://www.stafford.uklinux.net/libesmtp/libesmtp-${PV}.tar.bz2 \
|
||||
file://include-topdir.patch"
|
||||
file://include-topdir.patch \
|
||||
file://snprintf.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "bf3915e627fd8f35524a8fdfeed979c8"
|
||||
SRC_URI[sha256sum] = "d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user