summaryrefslogtreecommitdiffstats
path: root/gl/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/getopt.c')
-rw-r--r--gl/getopt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gl/getopt.c b/gl/getopt.c
index f66f119e..6b155e6c 100644
--- a/gl/getopt.c
+++ b/gl/getopt.c
@@ -1,5 +1,5 @@
1/* Getopt for GNU. 1/* Getopt for GNU.
2 Copyright (C) 1987-2024 Free Software Foundation, Inc. 2 Copyright (C) 1987-2025 Free Software Foundation, Inc.
3 This file is part of the GNU C Library and is also part of gnulib. 3 This file is part of the GNU C Library and is also part of gnulib.
4 Patches to this file should be submitted to both projects. 4 Patches to this file should be submitted to both projects.
5 5
@@ -42,7 +42,7 @@
42# define funlockfile(fp) _IO_funlockfile (fp) 42# define funlockfile(fp) _IO_funlockfile (fp)
43#else 43#else
44# include "gettext.h" 44# include "gettext.h"
45# define _(msgid) gettext (msgid) 45# define _(msgid) dgettext ("gnulib", msgid)
46/* When used standalone, flockfile and funlockfile might not be 46/* When used standalone, flockfile and funlockfile might not be
47 available. */ 47 available. */
48# if (!defined _POSIX_THREAD_SAFE_FUNCTIONS \ 48# if (!defined _POSIX_THREAD_SAFE_FUNCTIONS \
@@ -723,7 +723,7 @@ _getopt_internal (int argc, char **argv, const char *optstring,
723 return result; 723 return result;
724} 724}
725 725
726/* glibc gets a LSB-compliant getopt and a POSIX-complaint __posix_getopt. 726/* glibc gets a LSB-compliant getopt and a POSIX-compliant __posix_getopt.
727 Standalone applications just get a POSIX-compliant getopt. 727 Standalone applications just get a POSIX-compliant getopt.
728 POSIX and LSB both require these functions to take 'char *const *argv' 728 POSIX and LSB both require these functions to take 'char *const *argv'
729 even though this is incorrect (because of the permutation). */ 729 even though this is incorrect (because of the permutation). */
@@ -732,7 +732,7 @@ _getopt_internal (int argc, char **argv, const char *optstring,
732 NAME (int argc, char *const *argv, const char *optstring) \ 732 NAME (int argc, char *const *argv, const char *optstring) \
733 { \ 733 { \
734 return _getopt_internal (argc, (char **)argv, optstring, \ 734 return _getopt_internal (argc, (char **)argv, optstring, \
735 0, 0, 0, POSIXLY_CORRECT); \ 735 NULL, NULL, 0, POSIXLY_CORRECT); \
736 } 736 }
737 737
738#ifdef _LIBC 738#ifdef _LIBC