aboutsummaryrefslogtreecommitdiff
path: root/include/shadow_.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-09 17:59:34 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-09 17:59:34 +0000
commit98636eb08c5ecc216e18970e11f7021206ac9b04 (patch)
treedfc70b7c6bf6276776c4e8198457dcf2df1e09fb /include/shadow_.h
parent50dbed95fb7c0a97135b771385160ca26c377a15 (diff)
downloadbusybox-w32-98636eb08c5ecc216e18970e11f7021206ac9b04.tar.gz
busybox-w32-98636eb08c5ecc216e18970e11f7021206ac9b04.tar.bz2
busybox-w32-98636eb08c5ecc216e18970e11f7021206ac9b04.zip
Use intra-DSO calls when we build libbusybox. No-op for normal build.
This was Bernhard Fischer' idea. text data bss dec hex filename 773549 7781 9740 791070 c121e busybox.t7/0_lib/libbusybox.so.1.11.0.svn_unstripped 769683 7397 9740 786820 c0184 busybox.t9t/0_lib/libbusybox.so.1.11.0.svn_unstripped
Diffstat (limited to 'include/shadow_.h')
-rw-r--r--include/shadow_.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/shadow_.h b/include/shadow_.h
index 92bcde864..5a8b71a47 100644
--- a/include/shadow_.h
+++ b/include/shadow_.h
@@ -19,15 +19,13 @@
19 19
20/* Declaration of types and functions for shadow password suite */ 20/* Declaration of types and functions for shadow password suite */
21 21
22#if !ENABLE_USE_BB_SHADOW
23
24#include <shadow.h>
25
26#else
27
28#ifndef _SHADOW_H 22#ifndef _SHADOW_H
29#define _SHADOW_H 1 23#define _SHADOW_H 1
30 24
25#if __GNUC_PREREQ(4,1)
26# pragma GCC visibility push(hidden)
27#endif
28
31/* Paths to the user database files */ 29/* Paths to the user database files */
32#ifndef _PATH_SHADOW 30#ifndef _PATH_SHADOW
33#define _PATH_SHADOW "/etc/shadow" 31#define _PATH_SHADOW "/etc/shadow"
@@ -110,5 +108,8 @@ extern int lckpwdf(void);
110/* Unlock password file */ 108/* Unlock password file */
111extern int ulckpwdf(void); 109extern int ulckpwdf(void);
112 110
113#endif /* shadow.h */ 111#if __GNUC_PREREQ(4,1)
112# pragma GCC visibility pop
114#endif 113#endif
114
115#endif /* shadow.h */