aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-04-24 19:11:25 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-04-24 19:14:28 +0300
commit0c1a160a68b89f5b2c31eac458ca2d62a622a524 (patch)
treed7e7426d8ea71bd720d47b7e7653cbeb81111601 /src
parent63e20041a2b5f98fdfe6b32af9550ca54ff8649f (diff)
downloadpostgresql-0c1a160a68b89f5b2c31eac458ca2d62a622a524.tar.gz
postgresql-0c1a160a68b89f5b2c31eac458ca2d62a622a524.zip
Add missing #include.
On non-Windows systems, sys/time.h was pulled in by portability/instr_time.h, which pulled in time.h. We certainly should include time.h directly, since we're using time(2), but the indirect include masked the problem on most platforms. Andres Freund
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 09939fda5dd..4e4c5bec7b2 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -13,6 +13,7 @@
#endif
#include <ctype.h>
+#include <time.h>
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif