Module Name: src Committed By: christos Date: Fri Jan 13 14:41:27 UTC 2017
Modified Files: src/lib/libc/include: namespace.h Log Message: allow overriding snprintf/vsnprintf To generate a diff of this commit: cvs rdiff -u -r1.184 -r1.185 src/lib/libc/include/namespace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/include/namespace.h diff -u src/lib/libc/include/namespace.h:1.184 src/lib/libc/include/namespace.h:1.185 --- src/lib/libc/include/namespace.h:1.184 Thu Jan 12 13:16:52 2017 +++ src/lib/libc/include/namespace.h Fri Jan 13 09:41:27 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: namespace.h,v 1.184 2017/01/12 18:16:52 christos Exp $ */ +/* $NetBSD: namespace.h,v 1.185 2017/01/13 14:41:27 christos Exp $ */ /*- * Copyright (c) 1997-2004 The NetBSD Foundation, Inc. @@ -626,7 +626,7 @@ #define sl_free _sl_free #define sl_init _sl_init #define sleep _sleep -#if __SSP_FORTIFY_LEVEL == 0 +#if __SSP_FORTIFY_LEVEL == 0 && !defined(snprintf) #define snprintf _snprintf #endif #define snprintf_l _snprintf_l @@ -736,7 +736,7 @@ #define vasprintf _vasprintf #define vasprintf_l _vasprintf_l #define vdprintf _vdprintf -#if __SSP_FORTIFY_LEVEL == 0 +#if __SSP_FORTIFY_LEVEL == 0 && !defined(vsnprintf) #define vsnprintf _vsnprintf #endif #define vdprintf_l _vdprintf_l