--- /dev/null
+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
Source0: https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v%{version}/%{name}-%{version}.tar.xz
# Source0-md5: 90c139542725efc6da3a6b1709695395
Patch0: %{name}-am.patch
+Patch1: glibc.patch
URL: https://reiser4.wiki.kernel.org/index.php/Reiserfsprogs
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.11.1
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}