summaryrefslogtreecommitdiff
path: root/package/hdparm/patches/patch-fallocate_c
blob: b826cdebae52b93f6b51e6a9285d5b87b2ded5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- hdparm-9.43.orig/fallocate.c	2010-10-04 21:38:39.000000000 +0200
+++ hdparm-9.43/fallocate.c	2013-12-26 10:25:40.000000000 +0100
@@ -27,7 +27,7 @@ int do_fallocate_syscall (const char *pa
 	err = EINVAL;
 #else
 	int fd;
-	loff_t offset = 0, len;
+	off_t offset = 0, len;
 	int mode = 0;
 
 	fd = open(path, O_WRONLY|O_CREAT|O_EXCL, 0600);