Module Name: src
Committed By: christos
Date: Wed Feb 16 19:29:35 UTC 2011
Modified Files:
src/include: rmt.h
Log Message:
handle ssp
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/include/rmt.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/rmt.h
diff -u src/include/rmt.h:1.6 src/include/rmt.h:1.7
--- src/include/rmt.h:1.6 Tue Aug 31 01:12:35 2010
+++ src/include/rmt.h Wed Feb 16 14:29:35 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: rmt.h,v 1.6 2010/08/31 05:12:35 enami Exp $ */
+/* $NetBSD: rmt.h,v 1.7 2011/02/16 19:29:35 christos Exp $ */
/*
* rmt.h
@@ -19,6 +19,11 @@
#include <sys/cdefs.h>
+#if _FORTIFY_SOURCE > 0
+#define __ssp_weak_name(x) rmt ## x
+#include <ssp/unistd.h>
+#endif
+
__BEGIN_DECLS
int isrmt(int);
int rmtaccess(const char *, int);
@@ -49,7 +54,9 @@
#define lseek rmtlseek
#define lstat rmtlstat
#define open rmtopen
+#if __SSP_FORTIFY_LEVEL == 0
#define read rmtread
+#endif
#define stat rmtstat
#define write rmtwrite
#endif /* __RMTLIB_PRIVATE */