Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include/ssp Use the _sys alias instead of the _ alias as the...
details: https://anonhg.NetBSD.org/src/rev/bb323e8d6542
branches: trunk
changeset: 761062:bb323e8d6542
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 20 02:58:17 2011 +0000
description:
Use the _sys alias instead of the _ alias as the way to access the baseline
syscall.
diffstat:
include/ssp/ssp.h | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r d9b62ca185f5 -r bb323e8d6542 include/ssp/ssp.h
--- a/include/ssp/ssp.h Thu Jan 20 02:57:00 2011 +0000
+++ b/include/ssp/ssp.h Thu Jan 20 02:58:17 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssp.h,v 1.5 2011/01/19 19:21:29 christos Exp $ */
+/* $NetBSD: ssp.h,v 1.6 2011/01/20 02:58:17 christos Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -43,7 +43,12 @@
# endif
#endif
-#define __ssp_weak_name(fun) _ ## fun
+#ifdef _NAMESPACE_H_
+#define __ssp_weak_name(fun) _sys ## fun
+#else
+#define __ssp_weak_name(fun) _sys_ ## fun
+#endif
+
#define __ssp_inline static __inline __attribute__((__always_inline__))
#define __ssp_bos(ptr) __builtin_object_size(ptr, __SSP_FORTIFY_LEVEL > 1)
Home |
Main Index |
Thread Index |
Old Index