Module Name: src
Committed By: christos
Date: Sat Jan 7 21:29:30 UTC 2017
Modified Files:
src/tools/compat: compat_defs.h
Log Message:
adjust for SSP (MacOS/X)
To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/tools/compat/compat_defs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/compat/compat_defs.h
diff -u src/tools/compat/compat_defs.h:1.106 src/tools/compat/compat_defs.h:1.107
--- src/tools/compat/compat_defs.h:1.106 Fri Jan 6 21:55:19 2017
+++ src/tools/compat/compat_defs.h Sat Jan 7 16:29:30 2017
@@ -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(char *, size_t, const char
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 vasprintf(char **, const char *, va_
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