1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

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
This commit is contained in:
Heikki Linnakangas
2013-04-24 19:11:25 +03:00
parent 63e20041a2
commit 0c1a160a68

View File

@ -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