Package: nat
Severity: normal
Tags: patch

Dear Maintainer,

nat currently FTBFS on hurd-i386 with the following error:

> includes.h:166:23: fatal error: sys/mount.h: No such file or directory

The attached patch should fix this issue.

WBR,
Cyril Roelandt.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99-486/Hurd-0.3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -ru nat-1.0.orig/includes.h nat-1.0/includes.h
--- nat-1.0.orig/includes.h	2012-07-17 22:25:21.000000000 +0000
+++ nat-1.0/includes.h	2012-07-17 22:29:33.000000000 +0000
@@ -111,6 +111,9 @@
 #define NO_NETIFH
 #endif
 
+#ifdef __GNU__
+#define NO_SYSMOUNTH
+#endif
 
 #if (defined(SHADOW_PWD)||defined(OSF1_ENH_SEC)||defined(SecureWare)||defined(PWDAUTH))
 #define PASSWORD_LENGTH 16
@@ -164,6 +167,8 @@
 #endif
 #ifndef NO_SYSMOUNTH
 #include <sys/mount.h>
+#elif !defined(NO_SYSSTATFSH)
+#include <sys/statfs.h>
 #endif
 #include <pwd.h>
 #ifdef __STDC__

Reply via email to