aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-02 22:52:28 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-02 22:52:28 -0400
commitff111c5f59e5405631177e081eb7ca485e5e0265 (patch)
tree92d7751d85069c8e1cff2426643765424cdb4f90 /libsandbox/wrapper-funcs
parentclean up configure script a bit and log active env (diff)
downloadsandbox-ff111c5f59e5405631177e081eb7ca485e5e0265.tar.gz
sandbox-ff111c5f59e5405631177e081eb7ca485e5e0265.tar.bz2
sandbox-ff111c5f59e5405631177e081eb7ca485e5e0265.zip
libsandbox: make sure fopen64 uses 64bit funcs
URL: http://bugs.gentoo.org/271260 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: T Chan <something-bz@sodium.serveirc.com>
Diffstat (limited to 'libsandbox/wrapper-funcs')
-rw-r--r--libsandbox/wrapper-funcs/fopen.c4
-rw-r--r--libsandbox/wrapper-funcs/fopen64.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/libsandbox/wrapper-funcs/fopen.c b/libsandbox/wrapper-funcs/fopen.c
index 1013013..57e7dba 100644
--- a/libsandbox/wrapper-funcs/fopen.c
+++ b/libsandbox/wrapper-funcs/fopen.c
@@ -33,6 +33,8 @@ static inline bool sb_fopen_pre_check(WRAPPER_ARGS_PROTO)
return true;
}
#endif
-#define WRAPPER_PRE_CHECKS() sb_fopen_pre_check(WRAPPER_ARGS)
+#ifndef WRAPPER_PRE_CHECKS
+# define WRAPPER_PRE_CHECKS() sb_fopen_pre_check(WRAPPER_ARGS)
+#endif
#include "__wrapper_simple.c"
diff --git a/libsandbox/wrapper-funcs/fopen64.c b/libsandbox/wrapper-funcs/fopen64.c
index 4645745..60116fe 100644
--- a/libsandbox/wrapper-funcs/fopen64.c
+++ b/libsandbox/wrapper-funcs/fopen64.c
@@ -6,5 +6,9 @@
*/
#include "__64_pre.h"
+#undef SB_FOPEN_PRE_CHECK
+#define sb_fopen_pre_check sb_fopen64_pre_check
+#define WRAPPER_PRE_CHECKS() sb_fopen64_pre_check(WRAPPER_ARGS)
#include "fopen.c"
+#undef sb_fopen_pre_check
#include "__64_post.h"