Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat adjust for SSP (MacOS/X)



details:   https://anonhg.NetBSD.org/src/rev/356c6910e640
branches:  trunk
changeset: 350223:356c6910e640
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 07 21:29:30 2017 +0000

description:
adjust for SSP (MacOS/X)

diffstat:

 tools/compat/compat_defs.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r adb13005f631 -r 356c6910e640 tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Sat Jan 07 21:12:42 2017 +0000
+++ b/tools/compat/compat_defs.h        Sat Jan 07 21:29:30 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.106 2017/01/07 02:55:19 christos Exp $       */
+/*     $NetBSD: compat_defs.h,v 1.107 2017/01/07 21:29:30 christos Exp $       */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -529,7 +529,7 @@
 int snprintb_m(char *, size_t, const char *, uint64_t, size_t);
 #endif
 
-#if !HAVE_DECL_SNPRINTF
+#if !HAVE_DECL_SNPRINTF && !defined(snprintf)
 int snprintf(char *, size_t, const char *, ...);
 #endif
 
@@ -581,7 +581,7 @@
 int vasnprintf(char **, size_t, const char *, va_list);
 #endif
 
-#if !HAVE_DECL_VSNPRINTF
+#if !HAVE_DECL_VSNPRINTF && !defined(vsnprintf)
 int vsnprintf(char *, size_t, const char *, va_list);
 #endif
 



Home | Main Index | Thread Index | Old Index