diff options
| author | christos <christos@NetBSD.org> | 2011-02-16 19:29:35 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2011-02-16 19:29:35 +0000 |
| commit | 41fa8d8331b8cc838a12e2456c9323b57d5868e0 (patch) | |
| tree | 71478b51d1db5849d746b81a1eac72b6b547d891 /include | |
| parent | 312d5e4f1e32854b4801fae3ecf8dcd04d51bb15 (diff) | |
handle ssp
Diffstat (limited to 'include')
| -rw-r--r-- | include/rmt.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/rmt.h b/include/rmt.h index 75b4efc15ce..0b32b46699a 100644 --- a/include/rmt.h +++ b/include/rmt.h @@ -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 @@ __END_DECLS #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 */ |
