Bug 93211 - Build broken for uClibc
Summary: Build broken for uClibc
Status: RESOLVED FIXED
Alias: None
Product: p11-glue
Classification: Unclassified
Component: p11-kit (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: Stef Walter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-02 10:23 UTC by Gustavo Zacarias
Modified: 2015-12-08 11:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Include sys/select.h in rpc_transport.c for *nixes (1.10 KB, patch)
2015-12-02 10:23 UTC, Gustavo Zacarias
Details | Splinter Review

Description Gustavo Zacarias 2015-12-02 10:23:27 UTC
Created attachment 120273 [details] [review]
Include sys/select.h in rpc_transport.c for *nixes

fd_set and friends are defined in sys/select.h according to POSIX.1-2001
Since it's not included this breaks "pure" libc implementations like uClibc when building:

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]
p11-kit/rpc-transport.c:416:4: warning: nested extern declaration of ‘FD_ZERO’ [-Wnested-externs]
p11-kit/rpc-transport.c:417:4: warning: implicit declaration of function ‘FD_SET’ [-Wimplicit-function-declaration]
p11-kit/rpc-transport.c:417:4: warning: nested extern declaration of ‘FD_SET’ [-Wnested-externs]
p11-kit/rpc-transport.c:418:4: warning: implicit declaration of function ‘select’ [-Wimplicit-function-declaration]
p11-kit/rpc-transport.c:418:4: warning: nested extern declaration of ‘select’ [-Wnested-externs]
Makefile:2773: recipe for target 'p11-kit/libp11_kit_testable_la-rpc-transport.lo' failed
make[3]: *** [p11-kit/libp11_kit_testable_la-rpc-transport.lo] Error 1
Comment 1 Stef Walter 2015-12-08 11:31:58 UTC
Thanks. Merged and included in release 0.23.2


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.