From 972288e62fa0798f59caf209ab58c911d289a8b2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 15 Mar 2007 00:57:01 +0000 Subject: modify ptr_to_globals trick so that we do not violate type safety (well, sort of ;)) --- include/libbb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 9ea9f5a..9a6966d 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -806,6 +806,10 @@ extern const int const_int_1; #define BUFSIZ 4096 #endif extern char bb_common_bufsiz1[BUFSIZ+1]; +/* This struct is deliberately not defined. */ +/* See docs/keep_data_small.txt */ +struct globals; +extern struct globals *ptr_to_globals; /* You can change LIBBB_DEFAULT_LOGIN_SHELL, but don't use it, * use bb_default_login_shell and following defines. -- cgit v1.1