aboutsummaryrefslogtreecommitdiff
path: root/src/port/snprintf.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-07-28 04:03:14 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-07-28 04:03:14 +0000
commit06e1d62689d2d3ceca014b46476f81ef2d9ceeac (patch)
tree7f12da6bfc2ff6bc05a540151caa11b93970484e /src/port/snprintf.c
parent420cfd03666d71aa1f5e7b8453072895f6fa4b04 (diff)
downloadpostgresql-06e1d62689d2d3ceca014b46476f81ef2d9ceeac.tar.gz
postgresql-06e1d62689d2d3ceca014b46476f81ef2d9ceeac.zip
Fix a whole bunch of #includes that were either wrong or redundant.
The first rule of portability for us is 'thou shalt have no other gods before c.h', and a whole lot of these files were either not including c.h at all, or including random system headers beforehand, either of which sins can mess up largefile support nicely. Once you have included c.h, there is no need to re-include what it includes, either.
Diffstat (limited to 'src/port/snprintf.c')
-rw-r--r--src/port/snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c
index 04a5eb58b24..e7024b038ef 100644
--- a/src/port/snprintf.c
+++ b/src/port/snprintf.c
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*/
-#include "postgres.h"
+#include "c.h"
#ifndef WIN32
#include <sys/ioctl.h>
@@ -62,7 +62,7 @@
* causing nasty effects.
**************************************************************/
-/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.27 2005/04/14 20:53:09 tgl Exp $";*/
+/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.28 2005/07/28 04:03:14 tgl Exp $";*/
static void dopr(char *buffer, const char *format, va_list args, char *end);