about summary refs log tree commit diff
path: root/nscd/nscd_hash.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2017-10-10 14:09:02 +0200
committerAndreas Schwab <schwab@suse.de>2017-10-11 15:51:52 +0200
commit2faa42daa886cc176dfc10fef2308c9191a6ec7f (patch)
tree3d40397552004382b7da9af9da37692657fc7dec /nscd/nscd_hash.h
parentd8425e116cdd954fea0c04c0f406179b5daebbb3 (diff)
downloadglibc-2faa42daa886cc176dfc10fef2308c9191a6ec7f.tar.gz
glibc-2faa42daa886cc176dfc10fef2308c9191a6ec7f.tar.xz
glibc-2faa42daa886cc176dfc10fef2308c9191a6ec7f.zip
nscd: remove reference to libnsl
This removes the dependency on libnsl from nscd.  It only used __nis_hash,
build its own copy under the name __nscd_hash.
Diffstat (limited to 'nscd/nscd_hash.h')
-rw-r--r--nscd/nscd_hash.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/nscd/nscd_hash.h b/nscd/nscd_hash.h
new file mode 100644
index 0000000000..e56d71015c
--- /dev/null
+++ b/nscd/nscd_hash.h
@@ -0,0 +1,21 @@
+/* Copyright (C) 2017 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <stdint.h>
+
+extern uint32_t __nscd_hash (const void *__keyarg, size_t __len)
+  attribute_hidden;