diff mbox series

[hurd,commited] hurd: Fix nscd build

Message ID 20180128152949.13479-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] hurd: Fix nscd build | expand

Commit Message

Samuel Thibault Jan. 28, 2018, 3:29 p.m. UTC
nscd won't find check_* from inet/, it needs a sysdeps file.

	* sysdeps/mach/hurd/check_native.c: New file.
	* sysdeps/mach/hurd/check_pf.c: New file.
---
 ChangeLog                        | 2 ++
 sysdeps/mach/hurd/check_native.c | 1 +
 sysdeps/mach/hurd/check_pf.c     | 3 +++
 3 files changed, 6 insertions(+)
 create mode 100644 sysdeps/mach/hurd/check_native.c
 create mode 100644 sysdeps/mach/hurd/check_pf.c
diff mbox series

Patch

diff --git a/ChangeLog b/ChangeLog
index 9a34b84153..49bdd47601 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -49,6 +49,8 @@ 
 	__hurd_directory_name_split): Likewise.
 	* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
 	* hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
+	* sysdeps/mach/hurd/check_native.c: New file.
+	* sysdeps/mach/hurd/check_pf.c: New file.
 
 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
 
diff --git a/sysdeps/mach/hurd/check_native.c b/sysdeps/mach/hurd/check_native.c
new file mode 100644
index 0000000000..d16ff883a9
--- /dev/null
+++ b/sysdeps/mach/hurd/check_native.c
@@ -0,0 +1 @@ 
+#include <inet/check_native.c>
diff --git a/sysdeps/mach/hurd/check_pf.c b/sysdeps/mach/hurd/check_pf.c
new file mode 100644
index 0000000000..32cc28340b
--- /dev/null
+++ b/sysdeps/mach/hurd/check_pf.c
@@ -0,0 +1,3 @@ 
+#define __getifaddrs getifaddrs
+#define __freeifaddrs freeifaddrs
+#include <inet/check_pf.c>