blob: 6b225a10cffa416592156990bb2a7e91343ae4ba [file] [log] [blame]
Patrick Williams8e7b46e2023-05-01 14:19:06 -05001From 0912e49d58c2a5f455fabf76ab7dc61cfc44cfb9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 30 Mar 2023 20:50:26 -0700
4Subject: [PATCH] m4: Use autconf provided AC_FUNC_FSEEKO
5
6This helps in building with autoconf 2.72
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 m4/ac_func_fseeko.m4 | 18 +-----------------
12 1 file changed, 1 insertion(+), 17 deletions(-)
13
14diff --git a/m4/ac_func_fseeko.m4 b/m4/ac_func_fseeko.m4
15index eaeabb978..f9b8859cf 100644
16--- a/m4/ac_func_fseeko.m4
17+++ b/m4/ac_func_fseeko.m4
18@@ -53,20 +53,4 @@
19 # --------------
20 AN_FUNCTION([ftello], [AC_FUNC_FSEEKO])
21 AN_FUNCTION([fseeko], [AC_FUNC_FSEEKO])
22-AC_DEFUN([AC_FUNC_FSEEKO],
23-[_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
24- [ac_cv_sys_largefile_source],
25- [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).],
26- [[#include <sys/types.h> /* for off_t */
27- #include <stdio.h>]],
28- [[int (*fp) (FILE *, off_t, int) = fseeko;
29- return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);]])
30-
31-# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
32-# in glibc 2.1.3, but that breaks too many other things.
33-# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
34-if test $ac_cv_sys_largefile_source != unknown; then
35- AC_DEFINE(HAVE_FSEEKO, 1,
36- [Define to 1 if fseeko (and presumably ftello) exists and is declared.])
37-fi
38-])# AC_FUNC_FSEEKO
39+AC_FUNC_FSEEKO
40--
412.40.0
42