summaryrefslogtreecommitdiffstats
path: root/gl/getopt-pfx-core.h
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/getopt-pfx-core.h
parente2694816e78986f7a97691dc5b013cbeb7eede4f (diff)
parentbfc6492562f6cef4badda192142a0d10a3ed870b (diff)
downloadmonitoring-plugins-1e108210b67b4e1a3bfef60d0a7718b8d0080c1a.tar.gz
Merge branch 'master' into netsnmp595-fix
Diffstat (limited to 'gl/getopt-pfx-core.h')
-rw-r--r--gl/getopt-pfx-core.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gl/getopt-pfx-core.h b/gl/getopt-pfx-core.h
index 78b7816a..7c5ea094 100644
--- a/gl/getopt-pfx-core.h
+++ b/gl/getopt-pfx-core.h
@@ -1,5 +1,5 @@
1/* getopt (basic, portable features) gnulib wrapper header. 1/* getopt (basic, portable features) gnulib wrapper header.
2 Copyright (C) 1989-2024 Free Software Foundation, Inc. 2 Copyright (C) 1989-2025 Free Software Foundation, Inc.
3 This file is part of gnulib. 3 This file is part of gnulib.
4 Unlike most of the getopt implementation, it is NOT shared 4 Unlike most of the getopt implementation, it is NOT shared
5 with the GNU C Library. 5 with the GNU C Library.
@@ -31,6 +31,16 @@
31 functions and variables. Renaming avoids problems with some 31 functions and variables. Renaming avoids problems with some
32 compilers and linkers. */ 32 compilers and linkers. */
33#ifdef __GETOPT_PREFIX 33#ifdef __GETOPT_PREFIX
34
35/* Include platform-dependent header files that may declare getopt() and
36 friends. */
37# if defined _AIX || defined __hpux || defined __sun || defined __QNX__
38# include <stdio.h>
39# endif
40# if defined MUSL_LIBC || (defined __FreeBSD__ || defined __DragonFly__) || defined __NetBSD__ || defined __OpenBSD__ || (defined __APPLE__ && defined __MACH__) || defined _AIX || defined __sun || defined __minix || defined __HAIKU__
41# include <unistd.h>
42# endif
43
34# ifndef __GETOPT_ID 44# ifndef __GETOPT_ID
35# define __GETOPT_CONCAT(x, y) x ## y 45# define __GETOPT_CONCAT(x, y) x ## y
36# define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y) 46# define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y)