]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-raw.patch
- what a stupidity!
[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 @@ -31,6 +31,8 @@
13  #endif
14  #define DEVFS_RAWCTLDEV "/dev/raw/rawctl"
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 @@ -33,6 +33,7 @@
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 fsck.cramfs, mkfs.cramfs: do we have libz?
28 +# 15. For raw.c: does <sys/raw.h> exist?
29
30  rm -f make_include defines.h
31
32 @@ -680,4 +681,11 @@
33          echo "You don't have zlib"
34  fi
35  rm -f conftest conftest.c
36 +
37 +#
38 +# 15. 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  
This page took 0.029394 seconds and 3 git commands to generate.