blob: 26f8afe4d641485d27c2ae7266aad6be28b3e91c [file] [log] [blame]
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05001From 5d335b5ddd052f047759cae0e9b94ec49f9f3884 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@fujitsu.com>
3Date: Mon, 20 Mar 2023 02:03:04 +0000
4Subject: [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
14Upstream-Status: Inappropriate [embedded specific]
15Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
16---
17 src/tools/pgproto/read.c | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/src/tools/pgproto/read.c b/src/tools/pgproto/read.c
21index 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--
332.34.1