Disallow empty passwords in LDAP authentication, the same way
[PostgreSQL.git] / src / include / getopt_long.h
blobbe0b806db903a0c20bf338c454241148815d6fe0
1 /*
2 * Portions Copyright (c) 1987, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
5 * Portions Copyright (c) 2003-2009, PostgreSQL Global Development Group
7 * $PostgreSQL$
8 */
9 #ifndef GETOPT_LONG_H
10 #define GETOPT_LONG_H
12 #ifdef HAVE_GETOPT_H
13 #include <getopt.h>
14 #endif
16 /* These are picked up from the system's getopt() facility. */
17 extern int opterr;
18 extern int optind;
19 extern int optopt;
20 extern char *optarg;
21 extern int optreset;
23 #ifndef HAVE_STRUCT_OPTION
25 struct option
27 const char *name;
28 int has_arg;
29 int *flag;
30 int val;
33 #define no_argument 0
34 #define required_argument 1
35 #endif
37 #ifndef HAVE_GETOPT_LONG
39 extern int getopt_long(int argc, char *const argv[],
40 const char *optstring,
41 const struct option * longopts, int *longindex);
42 #endif
44 #endif /* GETOPT_LONG_H */