]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-raw.patch
- optimize in a way that nothing is done if config is empty
[packages/util-linux.git] / util-linux-raw.patch
1 diff -ur util-linux-2.12q.org/configure util-linux-2.12q/configure
2 --- util-linux-2.12q.org/configure      2004-12-20 23:20:35.000000000 +0100
3 +++ util-linux-2.12q/configure  2005-02-27 19:22:06.000000000 +0100
4 @@ -45,6 +45,7 @@
5  # 13. For nfsmount: does the output of rpcgen compile?
6  # 14. For fsck.cramfs, mkfs.cramfs: do we have libz?
7  # 15. For mount, do we have blkid?
8 +# 16. For raw.c: does <sys/raw.h> exist?
9  
10  rm -f make_include defines.h
11  
12 @@ -662,6 +663,13 @@
13  rm -f conftest conftest.c
14  
15  #
16 +# 16. For raw.c: does <sys/raw.h> exist?
17 +#
18 +if ./testincl "sys/raw.h"; then
19 +       echo "ADD_RAW=yes" >> make_include
20 +fi
21 +
22 +#
23  # 13. For nfsmount: does the output of rpcgen compile?
24  #
25  # On some systems the output of rpcgen compiles with warnings
26 diff -ur util-linux-2.12q.org/disk-utils/raw.c util-linux-2.12q/disk-utils/raw.c
27 --- util-linux-2.12q.org/disk-utils/raw.c       2002-03-08 23:58:37.000000000 +0100
28 +++ util-linux-2.12q/disk-utils/raw.c   2005-02-27 19:21:29.000000000 +0100
29 @@ -19,7 +19,7 @@
30  #include <sys/stat.h>
31  #include <sys/ioctl.h>
32  #include <sys/sysmacros.h>
33 -#include <linux/raw.h>
34 +#include <sys/raw.h>
35  #include <linux/major.h>
36  
37  #ifdef OLD_RAW_DEVS
38 @@ -31,6 +31,8 @@
39  #endif
40  #define DEVFS_RAWCTLDEV "/dev/raw/rawctl"
41  
42 +#undef __LINUX_RAW_H
43 +#define __LINUX_RAW_H __SYSTEM_RAW_H
44  
45  char * progname;
46  int    do_query = 0;
This page took 0.03003 seconds and 3 git commands to generate.