diff --git a/srcpkgs/oath-toolkit/patches/fix-glibc-2.28.patch b/srcpkgs/oath-toolkit/patches/fix-glibc-2.28.patch new file mode 100644 index 00000000000..bc37036a600 --- /dev/null +++ b/srcpkgs/oath-toolkit/patches/fix-glibc-2.28.patch @@ -0,0 +1,35 @@ +From fc0ef4aca2188c2653344924a35d19a86392d50f Mon Sep 17 00:00:00 2001 +From: maxice8 +Date: Sun, 23 Sep 2018 13:08:17 -0300 +Subject: [PATCH] gl/fseeko.c: fix compilation with glibc >= 2.28 + +--- + liboath/gl/fseeko.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/liboath/gl/fseeko.c b/liboath/gl/fseeko.c +index 67bb9ec..6adb80e 100644 +--- liboath/gl/fseeko.c ++++ liboath/gl/fseeko.c +@@ -47,7 +47,7 @@ fseeko (FILE *fp, off_t offset, int whence) + #endif + + /* These tests are based on fpurge.c. */ +-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ ++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ + if (fp->_IO_read_end == fp->_IO_read_ptr + && fp->_IO_write_ptr == fp->_IO_write_base + && fp->_IO_save_base == NULL) +@@ -123,7 +123,7 @@ fseeko (FILE *fp, off_t offset, int whence) + return -1; + } + +-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ ++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ + fp->_flags &= ~_IO_EOF_SEEN; + fp->_offset = pos; + #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ +-- +2.19.0 + +