Move routines to manipulate WAL into PostgreSQL::Test::Cluster
[pgsql.git] / src / include / getopt_long.h
blobe7bdf909f7bed6000bc64204350d96b948dedbbf
1 /*
2 * Portions Copyright (c) 1987, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
5 * Portions Copyright (c) 2003-2025, PostgreSQL Global Development Group
7 * src/include/getopt_long.h
8 */
9 /* IWYU pragma: always_keep */
10 #ifndef GETOPT_LONG_H
11 #define GETOPT_LONG_H
13 #include "pg_getopt.h" /* IWYU pragma: export */
15 #ifndef HAVE_STRUCT_OPTION
17 struct option
19 const char *name;
20 int has_arg;
21 int *flag;
22 int val;
25 #define no_argument 0
26 #define required_argument 1
27 #define optional_argument 2
28 #endif
30 #ifndef HAVE_GETOPT_LONG
32 extern int getopt_long(int argc, char *const argv[],
33 const char *optstring,
34 const struct option *longopts, int *longindex);
35 #endif
37 #endif /* GETOPT_LONG_H */