From: Erez Zadok Date: Sun, 22 May 2011 00:07:17 +0000 (-0400) Subject: Fix compile errors on Linux, CentOS 5.5 (can't find linux/nfs_mount.h) X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=9219fcfddfa7f5c9e35887cbb658201c7ee0209b;p=am-utils-6.2.git Fix compile errors on Linux, CentOS 5.5 (can't find linux/nfs_mount.h) Signed-off-by: Erez Zadok --- diff --git a/configure.in b/configure.in index c09551ae..2253ca72 100644 --- a/configure.in +++ b/configure.in @@ -674,7 +674,8 @@ AC_CHECK_HEADERS([ \ #ifdef HAVE_LINUX_SOCKET_H # include #endif /* HAVE_LINUX_SOCKET_H */ -#ifdef HAVE_SYS_SOCKET_H +#ifdef HAVE_SYS_SOCKET_H_off + /* broken on newer linux CentOS 5.5 */ # include #endif /* HAVE_SYS_SOCKET_H */ #ifdef HAVE_LIMITS_H @@ -684,8 +685,14 @@ AC_CHECK_HEADERS([ \ # include #endif /* HAVE_LINUX_POSIX_TYPES_H */ #ifdef HAVE_LINUX_NFS2_H -#if !defined(FHSIZE) && defined(NFS2_FHSIZE) -#define FHSIZE NFS2_FHSIZE +# if !defined(FHSIZE) && defined(NFS2_FHSIZE) +# define FHSIZE NFS2_FHSIZE +# endif +#ifdef HAVE_LINUX_NFS_H +# include +# if !defined(FHSIZE) && defined(NFS_FHSIZE) +# define FHSIZE NFS_FHSIZE +# endif #endif struct nfs2_fh { char data[[FHSIZE]]; @@ -783,6 +790,7 @@ https://bugzilla.am-utils.org/ or am-utils@am-utils.org please. ]) fi dnl ----------------------------------------------------------------------- +dnl NFS related tests need to happen earlier: many things depend on them AMU_STRUCT_FIELD_NFS_FH AMU_STRUCT_NFS_FH AMU_STRUCT_NFS_FH3