Re: [PATCH v06 15/36] uapi linux/socket.h: include sys/socket.h in user space

2017-08-09 Thread Arnd Bergmann
On Wed, Aug 9, 2017 at 1:00 AM, Dmitry V. Levin wrote: > On Sun, Aug 06, 2017 at 06:44:06PM +0200, Mikko Rapeli wrote: >> This libc header has sockaddr definition in user space. >> >> Fixes user space compilation errors like these from kernel headers including >> only linux/socket.h: >> >> error:

Re: [PATCH v06 15/36] uapi linux/socket.h: include sys/socket.h in user space

2017-08-08 Thread Dmitry V. Levin
On Sun, Aug 06, 2017 at 06:44:06PM +0200, Mikko Rapeli wrote: > This libc header has sockaddr definition in user space. > > Fixes user space compilation errors like these from kernel headers including > only linux/socket.h: > > error: field ‘ifru_addr’ has incomplete type > struct sockaddr ifru_a

[PATCH v06 15/36] uapi linux/socket.h: include sys/socket.h in user space

2017-08-06 Thread Mikko Rapeli
This libc header has sockaddr definition in user space. Fixes user space compilation errors like these from kernel headers including only linux/socket.h: error: field ‘ifru_addr’ has incomplete type struct sockaddr ifru_addr; error: field ‘_sockaddr’ has incomplete type struct sockaddr _sockaddr