dosfstools: add patch from sabotage to make this build.

This commit is contained in:
Juan RP 2014-01-11 11:58:04 +01:00
parent e7f8b476cd
commit 20807e83aa
2 changed files with 32 additions and 5 deletions

View file

@ -0,0 +1,31 @@
--- src/fsck.fat.h
+++ src/fsck.fat.h
@@ -27,6 +27,7 @@
#ifndef _DOSFSCK_H
#define _DOSFSCK_H
+#include <fcntl.h>
#include <sys/types.h>
#define _LINUX_STAT_H /* hack to avoid inclusion of <linux/stat.h> */
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h> */
--- src/io.h
+++ src/io.h
@@ -27,7 +27,7 @@
#ifndef _IO_H
#define _IO_H
-#include <sys/types.h> /* for loff_t */
+#include <fcntl.h> /* for loff_t */
loff_t llseek(int fd, loff_t offset, int whence);
--- src/mkfs.fat.c
+++ src/mkfs.fat.c
@@ -49,6 +49,7 @@
#include <fcntl.h>
#include <linux/hdreg.h>
#include <sys/mount.h>
+#include <linux/fs.h>
#include <linux/fd.h>
#include <endian.h>
#include <mntent.h>

View file

@ -1,7 +1,7 @@
# Template file for 'dosfstools'
pkgname=dosfstools
version=3.0.24
revision=1
revision=2
build_style=gnu-makefile
make_install_args="PREFIX=/usr SBINDIR=/usr/bin"
short_desc="DOS filesystem tools"
@ -10,7 +10,3 @@ homepage="http://www.daniel-baumann.ch/software/$pkgname"
license="GPL-2"
distfiles="http://daniel-baumann.ch/files/software/dosfstools/dosfstools-${version}.tar.xz"
checksum=1e21b7e7c8872fb3debf2a7fdc8c223a5f592a6efa8ae181a92f558ed28274c1
long_desc="
The dosfstools package includes the mkdosfs (a.k.a. mkfs.dos and mkfs.vfat)
and dosfsck (a.k.a. fsck.msdos and fsck.vfat) utilities, which respectively
make and check MS-DOS FAT filesystems on hard drives or on floppies."