Fix compiler warnings regarding DEFAULT_PGSOCKET_DIR.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 3 Oct 2023 01:46:46 +0000 (10:46 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 3 Oct 2023 01:46:46 +0000 (10:46 +0900)
Commit 3bd6941f accidentally add "#include "pg_config_manual.h", which
should have been "#include parser/pg_config_manual.h".  This caused to
include parser/pg_config_manual.h and pg_config_manual.h, which caused
compiler warning:

../src/include/parser/pg_config_manual.h:227:0: warning: "DEFAULT_PGSOCKET_DIR" redefined [enabled by default]
 #define DEFAULT_PGSOCKET_DIR  "/tmp"

If DEFAULT_PGSOCKET_DIR value was different among these header files.

Reported by: Peng Bo.

src/include/pcp/libpcp_ext.h
src/protocol/pool_process_query.c

index 3c5f41ebfe6a9216c837c37a7e62179f59c34973..a290258be74ae77cd79b02785e79a9faef4e5ef8 100644 (file)
@@ -29,7 +29,7 @@
 #include <signal.h>
 #include <stdio.h>
 
-#include "pg_config_manual.h"
+#include "parser/pg_config_manual.h"
 
 /*
  * startup packet definitions (v2) stolen from PostgreSQL
index f6749aa8a33b03493e73a25f4803b8356fc30693..07dcc0b1f59534c167ce38867ad879f837932ce1 100644 (file)
@@ -42,7 +42,7 @@
 
 #include "pool.h"
 #include "pool_config.h"
-#include "pg_config_manual.h"
+#include "parser/pg_config_manual.h"
 #include "rewrite/pool_timestamp.h"
 #include "main/pool_internal_comms.h"
 #include "protocol/pool_process_query.h"