forked from pool/linux-ftools
- use <asm/unistd.h> in place of <asm/unistd_64.h> to avoid build error for different archs OBS-URL: https://build.opensuse.org/request/show/323187 OBS-URL: https://build.opensuse.org/package/show/filesystems/linux-ftools?expand=0&rev=5
43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
From: david.t....@gmail.com
|
|
Subject: linux ftools use asm unistd h
|
|
|
|
unistd_64.h is debian specific.
|
|
unistd.h has a ifdef that selects the right distribution
|
|
|
|
This is based on patch from david.t....@gmail.com found at
|
|
https://code.google.com/p/linux-ftools/issues/detail?id=5
|
|
|
|
Signed-off-by: david.t....@gmail.com
|
|
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
|
---
|
|
linux-fadvise.c | 2 +-
|
|
linux-fallocate.c | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
Index: linux-ftools-2a7918d4b81b/linux-fadvise.c
|
|
===================================================================
|
|
--- linux-ftools-2a7918d4b81b.orig/linux-fadvise.c
|
|
+++ linux-ftools-2a7918d4b81b/linux-fadvise.c
|
|
@@ -5,7 +5,7 @@
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
#include <sys/syscall.h>
|
|
-#include <asm/unistd_64.h>
|
|
+#include <asm/unistd.h>
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
#include <stdlib.h>
|
|
Index: linux-ftools-2a7918d4b81b/linux-fallocate.c
|
|
===================================================================
|
|
--- linux-ftools-2a7918d4b81b.orig/linux-fallocate.c
|
|
+++ linux-ftools-2a7918d4b81b/linux-fallocate.c
|
|
@@ -4,7 +4,7 @@
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
#include <sys/syscall.h>
|
|
-#include <asm/unistd_64.h>
|
|
+#include <asm/unistd.h>
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
#include <stdlib.h>
|