diff -urN nfs-server-2.2beta47.old/configure nfs-server-2.2beta47/configure --- nfs-server-2.2beta47.old/configure 1999-06-11 12:06:04.000000000 +0200 +++ nfs-server-2.2beta47/configure 2005-03-24 22:24:39.000000000 +0100 @@ -1960,7 +1960,7 @@ echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext <&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { echo "configure: error: can not run test program while cross compiling" 1>&2; } else cat > conftest.$ac_ext < #ifdef HAVE_SYSLOG_H #include --- nfs-server-2.2beta47.old/fh.c 1999-11-10 10:41:14.000000000 +0100 +++ nfs-server-2.2beta47/fh.c 2005-03-24 22:50:50.000000000 +0100 @@ -50,6 +50,7 @@ */ #include +#include #include "nfsd.h" #include "rpcmisc.h" #include "signals.h" @@ -350,7 +351,7 @@ #ifndef ENABLE_DEVTAB psi_t dmajor, dminor; -#if SIZEOF_DEV_T == 4 +#if (SIZEOF_DEV_T == 4) /* This folds the upper 16 bits into bits 8..15, and * the lower 16 bits into bits 0..7 */ --- nfs-server-2.2beta47.old/ugid_map.c 2005-03-24 22:34:56.000000000 +0100 +++ nfs-server-2.2beta47/ugid_map.c 2005-03-24 22:54:00.000000000 +0100 @@ -34,14 +34,8 @@ #define UGID_CHUNK0_BYTES (UGID_CHUNK * sizeof(idmap_t)) #define UGID_EXPIRE 300 /* 5 minutes */ -/* - * Make sure we get the right size for ugid_t - */ -#if SIZEOF_UID_T != SIZEOF_GID_T -#error Sorry, this code relies on sizeof(uid_t) == sizeof(gid_t) -#endif -#define UGID_BITS (SIZEOF_UID_T * BITSPERBYTE) +#define UGID_BITS (sizeof(uid_t) * BITSPERBYTE) #define BITSTOLEVEL(b) ((UGID_BITS - (b)) / UGID_CHUNK_BITS - 1) #define UGID_LOWER(id, b) ((id) & ~((1 << (b)) - 1)) #define UGID_UPPER(id, b) (((id + (1 << (b))) & ~((1 << (b)) - 1))-1)