reiserfs-utils/parse_time_build_fix.patch
chenholmes fda41a3306 init
2020-02-26 16:33:56 +08:00

18 lines
503 B
Diff

Description: Fix compilation with newer glibc
Fixes compilation with newer glibc.
If _XOPEN_SOURCE is defined _DEFAULT_SOURCE needs to be defined explicit
to have the definition of loff_t.
Author: Felix Zielcke <fzielcke@z-51.de>
Bug-Debian: https://bugs.debian.org/916166
Last-Update: 2018-12-12
--- reiserfsprogs-3.6.27.orig/lib/parse_time.c
+++ reiserfsprogs-3.6.27/lib/parse_time.c
@@ -1,4 +1,5 @@
#define _XOPEN_SOURCE
+#define _DEFAULT_SOURCE
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif