shithub: mc

Download patch

ref: 4a22a055638ba409f6232d4ac6967c0fa20eade4
parent: 08abd441a43b7bcac3be65746612a2ef96799c80
author: Ori Bernstein <[email protected]>
date: Fri Jan 3 09:10:27 EST 2014

Add sockaddr_storage.

--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -4,6 +4,7 @@
     blat.myr \
     chartype.myr \
     cmp.myr \
+    dial.myr \
     die.myr \
     endian.myr \
     env.myr \
--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -70,6 +70,12 @@
 		zero	: byte[8]
 	;;
 
+	type sockaddr_storage = struct
+		fam	: sockfam
+		__align	: uint32
+		__pad	: byte[112]
+	;;
+
 	/* open options */
 	const Ordonly  	: fdopt = 0x0
 	const Owronly  	: fdopt = 0x1