summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/digits_dots.c1
-rw-r--r--nss/nss_files/files-parse.c5
-rw-r--r--nss/nsswitch.h1
3 files changed, 6 insertions, 1 deletions
diff --git a/nss/digits_dots.c b/nss/digits_dots.c
index 7321ec072f..4dc897c32c 100644
--- a/nss/digits_dots.c
+++ b/nss/digits_dots.c
@@ -354,3 +354,4 @@ __nss_hostname_digits_dots (const char *name, struct hostent *resbuf,
 done:
   return 1;
 }
+libc_hidden_def (__nss_hostname_digits_dots)
diff --git a/nss/nss_files/files-parse.c b/nss/nss_files/files-parse.c
index 4e0fffa4f1..739ee541aa 100644
--- a/nss/nss_files/files-parse.c
+++ b/nss/nss_files/files-parse.c
@@ -68,10 +68,12 @@ struct parser_data
 /* The function can't be exported, because the entdata structure
    is defined only in files-foo.c.  */
 # define parser_stclass static inline
+# define nss_files_parse_hidden_def(name)
 #else
 /* Export the line parser function so it can be used in nss_db.  */
 # define parser_stclass /* Global */
 # define parse_line CONCAT(_nss_files_parse_,ENTNAME)
+# define nss_files_parse_hidden_def(name) libc_hidden_def (name)
 #endif
 
 
@@ -101,7 +103,8 @@ parse_line (char *line, struct STRUCTURE *result,			      \
   BODY;									      \
   TRAILING_LIST_PARSER;							      \
   return 1;								      \
-}
+}									      \
+nss_files_parse_hidden_def (parse_line)
 
 
 # define STRING_FIELD(variable, terminator_p, swallow)			      \
diff --git a/nss/nsswitch.h b/nss/nsswitch.h
index c4d0aa6f66..b5e4fc344f 100644
--- a/nss/nsswitch.h
+++ b/nss/nsswitch.h
@@ -168,5 +168,6 @@ extern int __nss_hostname_digits_dots (const char *name,
 				       struct hostent **result,
 				       enum nss_status *status, int *typep,
 				       int flags, int *afp, int *h_errnop);
+libc_hidden_proto (__nss_hostname_digits_dots)
 
 #endif	/* nsswitch.h */