]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-raw.patch
- 2 patches merged into one
[packages/util-linux.git] / util-linux-raw.patch
1 --- ./disk-utils/raw.c.orig     Sat Jun 30 13:03:56 2001
2 +++ ./disk-utils/raw.c  Sat Jun 30 13:54:54 2001
3 @@ -19,7 +19,7 @@
4  #include <sys/stat.h>
5  #include <sys/ioctl.h>
6  #include <sys/sysmacros.h>
7 -#include <linux/raw.h>
8 +#include <sys/raw.h>
9  #include <linux/major.h>
10  
11  #ifdef OLD_RAW_DEVS
12 @@ -30,6 +30,8 @@
13  #define RAWDEVDIR "/dev/raw/"
14  #endif
15  
16 +#undef __LINUX_RAW_H
17 +#define __LINUX_RAW_H __SYSTEM_RAW_H
18  
19  char * progname;
20  int    do_query = 0;
21
22 --- util-linux-2.10q.org/configure      Tue Nov 21 22:08:46 2000
23 +++ util-linux-2.10q/configure  Tue Nov 21 22:10:35 2000
24 @@ -32,6 +32,7 @@
25  # 11. For pivot_root.c: does <linux/unistd.h> define __NR_pivot_root?
26  # 12. For hwclock.c: does struct tm have a field tm_gmtoff?
27  # 13. For nfsmount: does the output of rpcgen compile?
28 +# 14. For raw.c: does <sys/raw.h> exist?
29
30  rm -f make_include defines.h
31
32 @@ -558,3 +559,11 @@
33  fi
34  rm -f conftest conftestx.c conftestl.c conftest.h conftest.x conferrs
35  rm -f conftestx.o conftestl.o
36 +
37 +#
38 +# 14. For raw.c: does <sys/raw.h> exist?
39 +#
40 +if ./testincl "sys/raw.h"; then
41 +       echo "ADD_RAW=yes" >> make_include
42 +fi
43 +
44        
This page took 0.106709 seconds and 4 git commands to generate.