Module Name:    src
Committed By:   pooka
Date:           Fri Apr 25 18:37:38 UTC 2014

Modified Files:
        src/include/ssp: string.h

Log Message:
Apparently clang pretends to be gcc 4.2 but is secretly much awesomer
than gcc 4.2, so enable the stpncpy() wrapper also for clang.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/include/ssp/string.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/ssp/string.h
diff -u src/include/ssp/string.h:1.11 src/include/ssp/string.h:1.12
--- src/include/ssp/string.h:1.11	Thu Apr 24 20:12:56 2014
+++ src/include/ssp/string.h	Fri Apr 25 18:37:38 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: string.h,v 1.11 2014/04/24 20:12:56 pooka Exp $	*/
+/*	$NetBSD: string.h,v 1.12 2014/04/25 18:37:38 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@ __END_DECLS
 #define memmove(dst, src, len) __ssp_bos_check3(memmove, dst, src, len)
 #define memset(dst, val, len) __ssp_bos_check3(memset, dst, val, len)
 #define stpcpy(dst, src) __ssp_bos_check2(stpcpy, dst, src)
-#if __GNUC_PREREQ__(4,8)
+#if __GNUC_PREREQ__(4,8) || defined(__clang__)
 #define stpncpy(dst, src, len) __ssp_bos_check3(stpncpy, dst, src, len)
 #endif
 #define strcpy(dst, src) __ssp_bos_check2(strcpy, dst, src)

Reply via email to