summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/dict.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-05-06 17:24:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-05-06 17:24:55 +0000
commit278bd0cc224615e41219e24304d04898941ab046 (patch)
treeebf6ccc2a40ded4eff6d9cc38e76a458326732dc /contrib/tsearch2/dict.c
parent4eec2f24078d09fba8044a2b16584a9a4aa36242 (diff)
downloadpostgresql-278bd0cc224615e41219e24304d04898941ab046.tar.gz
For some reason access/tupmacs.h has been #including utils/memutils.h,
which is neither needed by nor related to that header. Remove the bogus inclusion and instead include the header in those C files that actually need it. Also fix unnecessary inclusions and bad inclusion order in tsearch2 files.
Diffstat (limited to 'contrib/tsearch2/dict.c')
-rw-r--r--contrib/tsearch2/dict.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/tsearch2/dict.c b/contrib/tsearch2/dict.c
index 0b7fb7288c..de81846e37 100644
--- a/contrib/tsearch2/dict.c
+++ b/contrib/tsearch2/dict.c
@@ -2,16 +2,15 @@
* interface functions to dictionary
* Teodor Sigaev <teodor@sigaev.ru>
*/
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
+#include "postgres.h"
+
#include <ctype.h>
-#include "postgres.h"
-#include "fmgr.h"
-#include "utils/array.h"
#include "catalog/pg_type.h"
#include "executor/spi.h"
+#include "fmgr.h"
+#include "utils/array.h"
+#include "utils/memutils.h"
#include "dict.h"
#include "common.h"