summaryrefslogtreecommitdiff
path: root/contrib/pg_autovacuum
diff options
context:
space:
mode:
authorTom Lane2003-08-07 21:11:58 +0000
committerTom Lane2003-08-07 21:11:58 +0000
commit33ab177a56b6fe751e70123cf1aa80448d9ca253 (patch)
treeb86c64fe688b1f4d383e57b836514ec7c1ee1e96 /contrib/pg_autovacuum
parentfea2ffa7d8ac6c3bf773247f7aa0a1f5fea653f7 (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.h2
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>