Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 1 | From 5d335b5ddd052f047759cae0e9b94ec49f9f3884 Mon Sep 17 00:00:00 2001 |
| 2 | From: Lei Maohui <leimaohui@fujitsu.com> |
| 3 | Date: Mon, 20 Mar 2023 02:03:04 +0000 |
| 4 | Subject: [PATCH] pgpool2: Fix unknown type name 'fd_set' error with musl. |
| 5 | |
| 6 | | read.c: In function 'read_until_ready_for_query': |
| 7 | | read.c:53:24: error: storage size of 'timeoutval' isn't known |
| 8 | | 53 | struct timeval timeoutval; |
| 9 | | | ^~~~~~~~~~ |
| 10 | | read.c:54:9: error: unknown type name 'fd_set' |
| 11 | | 54 | fd_set readmask; |
| 12 | | | ^~~~~~ |
| 13 | |
| 14 | Upstream-Status: Inappropriate [embedded specific] |
| 15 | Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> |
| 16 | --- |
| 17 | src/tools/pgproto/read.c | 1 + |
| 18 | 1 file changed, 1 insertion(+) |
| 19 | |
| 20 | diff --git a/src/tools/pgproto/read.c b/src/tools/pgproto/read.c |
| 21 | index c7fb548..4efe641 100644 |
| 22 | --- a/src/tools/pgproto/read.c |
| 23 | +++ b/src/tools/pgproto/read.c |
| 24 | @@ -19,6 +19,7 @@ |
| 25 | #include "../../include/config.h" |
| 26 | #include "pgproto/pgproto.h" |
| 27 | #include <unistd.h> |
| 28 | +#include <sys/select.h> |
| 29 | #include <stdlib.h> |
| 30 | #include <stdio.h> |
| 31 | #include <string.h> |
| 32 | -- |
| 33 | 2.34.1 |