Fix compile error on systems using musl libc.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 22 Mar 2023 11:53:38 +0000 (20:53 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 22 Mar 2023 11:53:38 +0000 (20:53 +0900)
Patch provided by leimaohui.
https://www.pgpool.net/mantisbt/view.php?id=790

src/tools/pgproto/read.c

index c7fb54885d7ef2bd889834244ac3cc4c182758c1..fff8e53d984a86f8090814a41a6a565c35c613cd 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2017-2018     Tatsuo Ishii
- * Copyright (c) 2018-2022     PgPool Global Development Group
+ * Copyright (c) 2018-2023     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -19,6 +19,7 @@
 #include "../../include/config.h"
 #include "pgproto/pgproto.h"
 #include <unistd.h>
+#include <sys/select.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>