diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-10 22:10:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-11-10 22:10:58 +0000 |
commit | 30fe03ce830a59bdc84c67405806ad7b63d02d53 (patch) | |
tree | 9fcd4056ccb85cc24d50eeefb50b2ca5bfb795f0 /libsandbox/libsandbox.h | |
parent | libsbutil: convert to stdbool.h (diff) | |
download | sandbox-30fe03ce830a59bdc84c67405806ad7b63d02d53.tar.gz sandbox-30fe03ce830a59bdc84c67405806ad7b63d02d53.tar.bz2 sandbox-30fe03ce830a59bdc84c67405806ad7b63d02d53.zip |
libsandbox: make sure we use local strdup rather than system libc
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/libsandbox.h')
-rw-r--r-- | libsandbox/libsandbox.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsandbox/libsandbox.h b/libsandbox/libsandbox.h index 6b93e2b..da42adf 100644 --- a/libsandbox/libsandbox.h +++ b/libsandbox/libsandbox.h @@ -10,6 +10,9 @@ #ifndef __LIBSANDBOX_H__ #define __LIBSANDBOX_H__ +/* glibc sometimes redefines this crap on us */ +#undef strdup + /* Macros to check if a function should be executed */ #define FUNCTION_SANDBOX_SAFE_AT(_dirfd, _func, _path) \ ((0 == is_sandbox_on()) || (1 == before_syscall(_dirfd, _func, _path))) |