History

uapi: fix linux/rxrpc.h userspace compilation errors

Consistently use types provided by <linux/types.h> to fix the following linux/rxrpc.h userspace compilation errors: /usr/include/linux/rxrpc.h:24:2: error: unknown type name 'u16' u16 srx_service; /* service desired */ /usr/include/linux/rxrpc.h:25:2: error: unknown type name 'u16' u16 transport_type; /* type of transport socket (SOCK_DGRAM) */ /usr/include/linux/rxrpc.h:26:2: error: unknown type name 'u16' u16 transport_len; /* length of transport address */ Use __kernel_sa_family_t instead of sa_family_t the same way as uapi/linux/in.h does, to fix the following linux/rxrpc.h userspace compilation errors: /usr/include/linux/rxrpc.h:23:2: error: unknown type name 'sa_family_t' sa_family_t srx_family; /* address family */ /usr/include/linux/rxrpc.h:28:3: error: unknown type name 'sa_family_t' sa_family_t family; /* transport address family */

Dmitry V. Levin committed 9 years ago

Commit 0eef3041 parent 44974781 file · +5 −5Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/rxrpc.h+5−5
@@ -20,12 +20,12 @@ · 19 unmodified lines
20 * RxRPC socket address20 * RxRPC socket address
21 */21 */
22struct sockaddr_rxrpc {22struct sockaddr_rxrpc {
23 sa_family_t srx_family; /* address family */23 __kernel_sa_family_t srx_family; /* address family */
24 u16 srx_service; /* service desired */24 __u16 srx_service; /* service desired */
25 u16 transport_type; /* type of transport socket (SOCK_DGRAM) */25 __u16 transport_type; /* type of transport socket (SOCK_DGRAM) */
26 u16 transport_len; /* length of transport address */26 __u16 transport_len; /* length of transport address */
27 union {27 union {
28 sa_family_t family; /* transport address family */28 __kernel_sa_family_t family; /* transport address family */
29 struct sockaddr_in sin; /* IPv4 transport address */29 struct sockaddr_in sin; /* IPv4 transport address */
30 struct sockaddr_in6 sin6; /* IPv6 transport address */30 struct sockaddr_in6 sin6; /* IPv6 transport address */
31 } transport;31 } transport;