Skip to content

Commit 0c1a160

Browse files
committed
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
1 parent 63e2004 commit 0c1a160

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/psql/command.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#endif
1414

1515
#include <ctype.h>
16+
#include <time.h>
1617
#ifdef HAVE_PWD_H
1718
#include <pwd.h>
1819
#endif

0 commit comments

Comments
 (0)