From: Alan Cox Date: Fri, 25 Mar 2016 17:39:09 +0000 (+0000) Subject: socket: add missing bits to include headers X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2a536bf8dc5c3e6a3b895ab9d2021f18229b233f;p=FUZIX.git socket: add missing bits to include headers --- diff --git a/Library/include/sys/socket.h b/Library/include/sys/socket.h index 610a84df..d4b6ce15 100644 --- a/Library/include/sys/socket.h +++ b/Library/include/sys/socket.h @@ -11,5 +11,9 @@ typedef int socklen_t; typedef uint16_t sa_family_t; +struct sockaddr { + sa_family_t sa_family; + uint8_t sa_data[14]; +}; #endif \ No newline at end of file diff --git a/Library/include/syscalls.h b/Library/include/syscalls.h index 62ba9cfe..89544f43 100644 --- a/Library/include/syscalls.h +++ b/Library/include/syscalls.h @@ -62,6 +62,9 @@ struct hd_geometry { uint16_t cylinders; uint32_t start; }; + +struct sockaddr; + #define HDIO_GETGEO 0x0101 #define HDIO_GET_IDENTITY 0x0102 /* Not yet implemented anywhere */