newer versions of the kernel pull in linux/types.h properly so redefining u64/u32/etc... in the configure test just causes things to fail the attached patch adds another fallback test for linux/nbd.h where it just tries to include linux/nbd.h without trying to define any types -mike
Attachment:
pgpv_1WzokoJR.pgp
Description: PGP signature
Index: configure.ac
===================================================================
--- configure.ac (revision 227)
+++ configure.ac (working copy)
@@ -85,7 +85,13 @@ AC_TRY_COMPILE([#define u32 int
[int foo=NBD_CMD_DISC],
[AC_DEFINE(NBD_H_LINUX, 1, Set to 1 if a (2.6) nbd.h can be found in the linux directory in the search path)
NBD_H='<linux/nbd.h>'],
+ AC_TRY_COMPILE([#include <linux/nbd.h>
+ ],
+[int foo=NBD_CMD_DISC],
+ [AC_DEFINE(NBD_H_LINUX, 1, Set to 1 if a (2.6) nbd.h can be found in the linux directory in the search path)
+ NBD_H='<linux/nbd.h>'],
AC_MSG_ERROR(Could not find an nbd.h from 2.6 or above.)
+ )
)
)
if test -f nbd.h