summaryrefslogtreecommitdiffstats
path: root/gl/m4/off64_t.m4
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-01-02 13:52:21 +0100
committerGitHub <noreply@github.com>2026-01-02 13:52:21 +0100
commit1e108210b67b4e1a3bfef60d0a7718b8d0080c1a (patch)
tree3669cfa7ceb8813f82199f6b9b66ad7f7c5d7b65 /gl/m4/off64_t.m4
parente2694816e78986f7a97691dc5b013cbeb7eede4f (diff)
parentbfc6492562f6cef4badda192142a0d10a3ed870b (diff)
downloadmonitoring-plugins-1e108210.tar.gz
Merge branch 'master' into netsnmp595-fix
Diffstat (limited to 'gl/m4/off64_t.m4')
-rw-r--r--gl/m4/off64_t.m432
1 files changed, 32 insertions, 0 deletions
diff --git a/gl/m4/off64_t.m4 b/gl/m4/off64_t.m4
new file mode 100644
index 00000000..963d53e9
--- /dev/null
+++ b/gl/m4/off64_t.m4
@@ -0,0 +1,32 @@
1# off64_t.m4
2# serial 1
3dnl Copyright (C) 2024-2025 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
8
9dnl Check whether <sys/types.h> defines the 'off64_t' type.
10dnl Set HAVE_OFF64_T.
11
12AC_DEFUN([gl_TYPE_OFF64_T],
13[
14 dnl Persuade glibc <sys/types.h>, <stdio.h>, <fcntl.h>, <unistd.h>, <aio.h>
15 dnl to define off64_t.
16 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
17
18 AC_CACHE_CHECK([for off64_t], [gl_cv_off64_t],
19 [AC_COMPILE_IFELSE(
20 [AC_LANG_PROGRAM(
21 [[#include <sys/types.h>]],
22 [[int x = sizeof (off64_t *) + sizeof (off64_t);
23 return !x;]])],
24 [gl_cv_off64_t=yes], [gl_cv_off64_t=no])])
25
26 if test $gl_cv_off64_t != no; then
27 HAVE_OFF64_T=1
28 else
29 HAVE_OFF64_T=0
30 fi
31 AC_SUBST([HAVE_OFF64_T])
32])