]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-raw.patch
use raw.h from glibc, not kernel headers
[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 --- ./configure.orig    Sat Jun 30 13:13:31 2001
22 +++ ./configure Sat Jun 30 13:52:00 2001
23 @@ -35,7 +35,7 @@
24  # 11. For pivot_root.c: does <linux/unistd.h> define __NR_pivot_root?
25  # 12. For hwclock.c: does struct tm have a field tm_gmtoff?
26  # 13. For nfsmount: does the output of rpcgen compile?
27 -# 14. For raw.c: does <linux/raw.h> exist?
28 +# 14. For raw.c: does <sys/raw.h> exist?
29  
30  rm -f make_include defines.h
31  
32 @@ -601,9 +601,9 @@
33  rm -f conftestx.o conftestl.o
34  
35  #
36 -# 14. For raw.c: does <linux/raw.h> exist?
37 +# 14. For raw.c: does <sys/raw.h> exist?
38  #
39 -if ./testincl "linux/raw.h"; then
40 +if ./testincl "sys/raw.h"; then
41         echo "ADD_RAW=yes" >> make_include
42  fi
43  
This page took 0.10996 seconds and 4 git commands to generate.