diff dynamin/core/unix_environment.d @ 106:acdbb30fee7e

Port to D2. Most of the effort was dealing with immutable and const.
author Jordan Miner <jminer7@gmail.com>
date Mon, 17 Dec 2012 23:41:50 -0600
parents 73060bc3f004
children
line wrap: on
line diff
--- a/dynamin/core/unix_environment.d	Sat Nov 24 10:21:50 2012 -0600
+++ b/dynamin/core/unix_environment.d	Mon Dec 17 23:41:50 2012 -0600
@@ -37,7 +37,7 @@
 	long backend_timevalToMs(timeval* tv) {
 		return tv.tv_sec*1000L+tv.tv_usec/1000;
 	}
-	const long timerSec = 31_536_000*5; // 31,536,000 seconds in 365 days
+	enum long timerSec = 31_536_000*5; // 31,536,000 seconds in 365 days
 	static this() {
 		itimerval itv;
 		itv.it_value.tv_sec = timerSec;