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:52:35 +0000 (10:52 +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 6d2eb1f448e851e0c65eacb805dbf4467d34edb8..70345050c64537e79f4811dbeaf2056c4e062e53 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 544d2d0a923122cce1664b2253a07086986b57c6..a7585ba2d339693040e790a9edfb2bc689b74169 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"