Ticket #8731: socket.patch

File socket.patch, 767 bytes (added by Anarchos, 12 years ago)

socket patch

  • headers/posix/sys/socket.h

    diff --git a/headers/posix/sys/socket.h b/headers/posix/sys/socket.h
    index 1962ace..069f354 100644
    a b  
    1313
    1414
    1515typedef uint32_t socklen_t;
     16typedef uint8_t sa_family_t;
    1617
    1718/* Address families */
    1819#define AF_UNSPEC       0
    struct linger {  
    8687
    8788struct sockaddr {
    8889    uint8_t     sa_len;
    89     uint8_t     sa_family;
     90    sa_family_t sa_family;
    9091    uint8_t     sa_data[30];
    9192};
    9293
    9394struct sockaddr_storage {
    9495    uint8_t     ss_len;         /* total length */
    95     uint8_t     ss_family;      /* address family */
     96    sa_family_t ss_family;      /* address family */
    9697    uint8_t     __ss_pad1[6];   /* align to quad */
    9798    uint64_t    __ss_pad2;      /* force alignment to 64 bit */
    9899    uint8_t     __ss_pad3[112]; /* pad to a total of 128 bytes */