diff -ur util-linux-2.12q.org/configure util-linux-2.12q/configure --- util-linux-2.12q.org/configure 2004-12-20 23:20:35.000000000 +0100 +++ util-linux-2.12q/configure 2005-02-27 19:22:06.000000000 +0100 @@ -45,6 +45,7 @@ # 13. For nfsmount: does the output of rpcgen compile? # 14. For fsck.cramfs, mkfs.cramfs: do we have libz? # 15. For mount, do we have blkid? +# 16. For raw.c: does exist? rm -f make_include defines.h @@ -662,6 +663,13 @@ rm -f conftest conftest.c # +# 16. For raw.c: does exist? +# +if ./testincl "sys/raw.h"; then + echo "ADD_RAW=yes" >> make_include +fi + +# # 13. For nfsmount: does the output of rpcgen compile? # # On some systems the output of rpcgen compiles with warnings diff -ur util-linux-2.12q.org/disk-utils/raw.c util-linux-2.12q/disk-utils/raw.c --- util-linux-2.12q.org/disk-utils/raw.c 2002-03-08 23:58:37.000000000 +0100 +++ util-linux-2.12q/disk-utils/raw.c 2005-02-27 19:21:29.000000000 +0100 @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #ifdef OLD_RAW_DEVS @@ -31,6 +31,8 @@ #endif #define DEVFS_RAWCTLDEV "/dev/raw/rawctl" +#undef __LINUX_RAW_H +#define __LINUX_RAW_H __SYSTEM_RAW_H char * progname; int do_query = 0;