aboutsummaryrefslogtreecommitdiff
path: root/include/shadow_.h
diff options
context:
space:
mode:
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 @@
/* Declaration of types and functions for shadow password suite */
-#if !ENABLE_USE_BB_SHADOW
-
-#include <shadow.h>
-
-#else
-
#ifndef _SHADOW_H
#define _SHADOW_H 1
+#if __GNUC_PREREQ(4,1)
+# pragma GCC visibility push(hidden)
+#endif
+
/* Paths to the user database files */
#ifndef _PATH_SHADOW
#define _PATH_SHADOW "/etc/shadow"
@@ -110,5 +108,8 @@ extern int lckpwdf(void);
/* Unlock password file */
extern int ulckpwdf(void);
-#endif /* shadow.h */
+#if __GNUC_PREREQ(4,1)
+# pragma GCC visibility pop
#endif
+
+#endif /* shadow.h */