socket: add missing bits to include headers
authorAlan Cox <alan@linux.intel.com>
Fri, 25 Mar 2016 17:39:09 +0000 (17:39 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 25 Mar 2016 17:39:09 +0000 (17:39 +0000)
Library/include/sys/socket.h
Library/include/syscalls.h

index 610a84d..d4b6ce1 100644 (file)
@@ -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
index 62ba9cf..89544f4 100644 (file)
@@ -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 */