From 2a536bf8dc5c3e6a3b895ab9d2021f18229b233f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 25 Mar 2016 17:39:09 +0000 Subject: [PATCH] socket: add missing bits to include headers --- Library/include/sys/socket.h | 4 ++++ Library/include/syscalls.h | 3 +++ 2 files changed, 7 insertions(+) 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 */ -- 2.34.1