mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
kexec: fix build without largefile support
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
19a19a3997
commit
56bf500c8b
22
package/kexec/kexec-largefile.patch
Normal file
22
package/kexec/kexec-largefile.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
[PATCH] vmcore-dmesg: don't enforce largefile handling
|
||||||
|
|
||||||
|
Breaks build on !largefile toolchains.
|
||||||
|
|
||||||
|
Instead simply use whatever mode is selected by toolchain / CFLAGS.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
||||||
|
---
|
||||||
|
vmcore-dmesg/vmcore-dmesg.c | 2 --
|
||||||
|
1 file changed, 2 deletions(-)
|
||||||
|
|
||||||
|
Index: kexec-tools-2.0.3/vmcore-dmesg/vmcore-dmesg.c
|
||||||
|
===================================================================
|
||||||
|
--- kexec-tools-2.0.3.orig/vmcore-dmesg/vmcore-dmesg.c
|
||||||
|
+++ kexec-tools-2.0.3/vmcore-dmesg/vmcore-dmesg.c
|
||||||
|
@@ -1,6 +1,4 @@
|
||||||
|
#define _XOPEN_SOURCE 600
|
||||||
|
-#define _LARGEFILE_SOURCE 1
|
||||||
|
-#define _FILE_OFFSET_BITS 64
|
||||||
|
#include <endian.h>
|
||||||
|
#include <byteswap.h>
|
||||||
|
#include <stdio.h>
|
Loading…
x
Reference in New Issue
Block a user