mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Centralize getopt-related declarations in a new header file pg_getopt.h.
We used to have externs for getopt() and its API variables scattered all over the place. Now that we find we're going to need to tweak the variable declarations for Cygwin, it seems like a good idea to have just one place to tweak. In this commit, the variables are declared "#ifndef HAVE_GETOPT_H". That may or may not work everywhere, but we'll soon find out. Andres Freund
This commit is contained in:
@@ -382,10 +382,6 @@ extern int fls(int mask);
|
||||
#define ftello(a) ftell(a)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETOPT
|
||||
extern int getopt(int nargc, char *const * nargv, const char *ostr);
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_GETPEEREID) && !defined(WIN32)
|
||||
extern int getpeereid(int sock, uid_t *uid, gid_t *gid);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user