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
pull/4/head
Heikki Linnakangas 12 years ago
parent 63e20041a2
commit 0c1a160a68
  1. 1
      src/bin/psql/command.c

@ -13,6 +13,7 @@
#endif #endif
#include <ctype.h> #include <ctype.h>
#include <time.h>
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif #endif

Loading…
Cancel
Save