shithub: mc

Download patch

ref: 9b60831c7e019e9fc9f4d62d1a016d8ddd7e7a91
parent: c9ffabb3d4425533371659bed8bbda68712122e7
author: Ori Bernstein <[email protected]>
date: Thu Dec 12 11:47:20 EST 2013

Make sys-linux match sys-osx

--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -66,7 +66,7 @@
 	type sockaddr_in = struct
 		fam	: sockfam
 		port	: uint16
-		addr	: uint32
+		addr	: byte[4]
 		zero	: byte[8]
 	;;
 
@@ -500,16 +500,16 @@
 
 const clockid = {clk
 	match clk
-	`Clockrealtime:		-> 0;;
-	`Clockmonotonic:	-> 1;;
-	`Clockproccpu:		-> 2;;
-	`Clockthreadcpu:	-> 3;;
-	`Clockmonotonicraw:	-> 4;;
-	`Clockrealtimecoarse:	-> 5;;
-	`Clockmonotoniccoarse:	-> 6;;
-	`Clockboottime:		-> 7;;
-	`Clockrealtimealarm:	-> 8;;
-	`Clockboottimealarm:	-> 9;;
+	| `Clockrealtime:	-> 0
+	| `Clockmonotonic:	-> 1
+	| `Clockproccpu:	-> 2
+	| `Clockthreadcpu:	-> 3
+	| `Clockmonotonicraw:	-> 4
+	| `Clockrealtimecoarse:	-> 5
+	| `Clockmonotoniccoarse:-> 6
+	| `Clockboottime:	-> 7
+	| `Clockrealtimealarm:	-> 8
+	| `Clockboottimealarm:	-> 9
 	;;
 	-> -1
 }