diff options
| author | Tom Lane | 2003-08-07 21:11:58 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-08-07 21:11:58 +0000 |
| commit | 33ab177a56b6fe751e70123cf1aa80448d9ca253 (patch) | |
| tree | b86c64fe688b1f4d383e57b836514ec7c1ee1e96 /contrib/pg_autovacuum | |
| parent | fea2ffa7d8ac6c3bf773247f7aa0a1f5fea653f7 (diff) | |
Don't assume that struct option is available just because we can find a
getopt_long(). This is more or less the same problem as we saw earlier
with getaddrinfo() and struct addrinfo, and for the same reason: random
user-added libraries might contain the subroutine, but there's no
guarantee we will find the matching header files.
Diffstat (limited to 'contrib/pg_autovacuum')
| -rw-r--r-- | contrib/pg_autovacuum/pg_autovacuum.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_autovacuum/pg_autovacuum.h b/contrib/pg_autovacuum/pg_autovacuum.h index fbdaf69912..0fe49159dd 100644 --- a/contrib/pg_autovacuum/pg_autovacuum.h +++ b/contrib/pg_autovacuum/pg_autovacuum.h @@ -6,7 +6,7 @@ #include "postgres_fe.h" #include <unistd.h> -#ifdef __GLIBC__ +#ifdef HAVE_GETOPT_H #include <getopt.h> #endif #include <time.h> |
