Fix compiler error on FreeBSD.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 4 Dec 2020 08:04:30 +0000 (17:04 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 4 Dec 2020 08:04:30 +0000 (17:04 +0900)
Per bug report 670.
https://www.pgpool.net/mantisbt/view.php?id=670
Patch provided by ajs.

src/main/pgpool_main.c

index 604fa9c899c5272798ecaf27694e68129e9a2c4e..c1529f299f662672c11d20e706c755bf2e15c16b 100644 (file)
 #include <sys/time.h>
 #include <sys/wait.h>
 
+#ifdef  __FreeBSD__
+#include <netinet/in.h>
+#endif
+
 #include "pool.h"
 #include "version.h"
 #include "pool_config.h"