]> err.no Git - util-linux/commitdiff
fdisk: don't include scsi.h
authorKarel Zak <kzak@redhat.com>
Wed, 13 Jan 2010 09:51:57 +0000 (10:51 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Jan 2010 09:59:43 +0000 (10:59 +0100)
The fdisksunlabel.c header file is unnecessary for fdisk/fdisksunlabel.h.

Reported-by: Thomas Stalder <thomas@netsolux.ch>
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
fdisk/fdisksunlabel.c

index e7750627cd8127164b6a17944ea227ffdc13b80a..5ddeaa5d9d086586f85fe8267863aada29aaa9d1 100644 (file)
@@ -116,7 +116,6 @@ AC_CHECK_HEADERS(
        net/if_dl.h \
         netinet/in.h \
        rpcsvc/nfs_prot.h \
-       scsi/scsi.h \
        stdlib.h \
        sys/disk.h \
        sys/disklabel.h \
index 2f9fad906222858fd2781dcebc5cdfe165447105..670a15a56d0d2d407c25dc9e4145e1dd47e69612 100644 (file)
 #include "blkdev.h"
 
 #include <endian.h>
-#ifdef HAVE_SCSI_SCSI_H
-#define u_char unsigned char
-#include <scsi/scsi.h>         /* SCSI_IOCTL_GET_IDLUN */
-#undef u_char
-#endif
 #ifdef HAVE_LINUX_MAJOR_H
 #include <linux/major.h>       /* FLOPPY_MAJOR */
 #endif