]> granicus.if.org Git - p11-kit/commitdiff
rpc-transport.c: include sys/select.h for fd_set
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 2 Dec 2015 10:15:43 +0000 (07:15 -0300)
committerStef Walter <stefw@redhat.com>
Mon, 7 Dec 2015 13:47:05 +0000 (14:47 +0100)
fd_set and friends, according to POSIX.1-2001, needs sys/select.h, so
include it otherwise the build fails for uClibc:

p11-kit/rpc-transport.c: In function ‘rpc_socket_read’:
p11-kit/rpc-transport.c:350:2: error: unknown type name ‘fd_set’
p11-kit/rpc-transport.c:416:4: warning: implicit declaration of function
‘FD_ZERO’ [-Wimplicit-function-declaration]

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
https://bugs.freedesktop.org/show_bug.cgi?id=93211

p11-kit/rpc-transport.c

index 7176b391ef8c18eb02c11d2cc048b2880ed9098c..5251e11695c9b3c8cbd5e7fa6bcc4545a511f2c3 100644 (file)
@@ -55,6 +55,7 @@
 #include <string.h>
 
 #ifdef OS_UNIX
+#include <sys/select.h>
 #include <sys/socket.h>
 #include <sys/wait.h>
 #include <sys/un.h>