Skip to content
Snippets Groups Projects
Commit 9c501935 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

net: Support inclusion of <linux/socket.h> before <sys/socket.h>


The following user-space program fails to compile:

    #include <linux/socket.h>
    #include <sys/socket.h>
    int main() { return 0; }

The reason is that <linux/socket.h> tests __GLIBC__ to decide whether it
should define various structures and macros that are now defined for
user-space by <sys/socket.h>, but __GLIBC__ is not defined if no libc
headers have yet been included.

It seems safe to drop support for libc 5 now.

Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarBastian Blank <waldi@debian.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9240d715
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment