aboutsummaryrefslogtreecommitdiff
path: root/contrib/tablefunc/tablefunc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-09-05 00:43:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-09-05 00:43:07 +0000
commit52c9d259335c9670f6487c5f40fc53b57a4c7b17 (patch)
tree721b585843dca83ac9517ca933fa891c4532a530 /contrib/tablefunc/tablefunc.c
parent3f63787cbfe0f1e837c92cd8ac35fd7ab811c18b (diff)
downloadpostgresql-52c9d259335c9670f6487c5f40fc53b57a4c7b17.tar.gz
postgresql-52c9d259335c9670f6487c5f40fc53b57a4c7b17.zip
Be careful to include postgres.h *before* any system headers, to ensure
that the right flavors of largefile-related definitions are seen. Most of these changes are probably unnecessary, but better safe than sorry.
Diffstat (limited to 'contrib/tablefunc/tablefunc.c')
-rw-r--r--contrib/tablefunc/tablefunc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c
index f620e61d5dc..254aa6c5c83 100644
--- a/contrib/tablefunc/tablefunc.c
+++ b/contrib/tablefunc/tablefunc.c
@@ -25,11 +25,10 @@
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
*/
-#include <stdlib.h>
-#include <math.h>
-
#include "postgres.h"
+#include <math.h>
+
#include "fmgr.h"
#include "funcapi.h"
#include "executor/spi.h"