Add missing #include.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Apr 2013 16:11:25 +0000 (19:11 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Apr 2013 16:14:28 +0000 (19:14 +0300)
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

src/bin/psql/command.c

index 09939fda5dd1ec6f07caf442ed0afc615a2a6dc5..4e4c5bec7b25d0ccdc697b72e6f3c0036a653528 100644 (file)
@@ -13,6 +13,7 @@
 #endif
 
 #include <ctype.h>
+#include <time.h>
 #ifdef HAVE_PWD_H
 #include <pwd.h>
 #endif