From 17528a6aa934162c222e98fba79079e7996fd77f Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sat, 24 Nov 2018 14:48:56 -0500 Subject: [PATCH 1/2] LFS fixup for PK3 support --- src/w_wad.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/w_wad.c b/src/w_wad.c index 57bde14c..1530a4a0 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -26,6 +26,18 @@ #include "lzf.h" #endif +#ifndef _FILE_OFFSET_BITS +#define _FILE_OFFSET_BITS 0 +#endif + +#ifndef _LARGEFILE64_SOURCE +#define _LARGEFILE64_SOURCE +#endif + +#ifndef _LFS64_LARGEFILE +#define _LFS64_LARGEFILE +#endif + #include "zlib.h" #include "doomdef.h" From 1bcfe16933d34f78672ae0e46a70e5620f6c76c3 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sat, 24 Nov 2018 17:30:49 -0500 Subject: [PATCH 2/2] Do not remove newlines from the end of files --- src/m_argv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_argv.c b/src/m_argv.c index 5c5dc37c..e8bfdd3d 100644 --- a/src/m_argv.c +++ b/src/m_argv.c @@ -214,4 +214,4 @@ void M_FindResponseFile(void) break; } -} \ No newline at end of file +}