 						}
 #else
 						let sock = SocketType(evt.ident)
-						let filter = evt.filter
-						let error = (evt.flags & ERROR) != 0
+						let filter = UInt32(evt.filter)
+						let error = (Int32(evt.flags) & ERROR) != 0
 						let errData = evt.data
 #endif
 	//					Log.info("kevent result sock: \(kevt.ident) filter: \(kevt.filter) flags: \(kevt.flags) data: \(kevt.data)")


import LinuxBridge

private let ONESHOT = EPOLLONESHOT.rawValue
private let ADD = EPOLL_CTL_ADD
private let DELETE = EPOLL_CTL_DEL
private let FILT_READ = EPOLLIN.rawValue
private let FILT_WRITE = EPOLLOUT.rawValue
private let FILT_TIMER = EPOLLWAKEUP.rawValue // used as marker, not actually passed into epoll


		static let None = Filter(rawValue: UInt32(FLAG_NONE))
		static let Error = Filter(rawValue: UInt32(ERROR))
//		static let Delete = Filter(rawValue: UInt32(DELETE))
		static let Read = Filter(rawValue: UInt32(FILT_READ))
		static let Write = Filter(rawValue: UInt32(FILT_WRITE))
		static let Timer = Filter(rawValue: UInt32(FILT_TIMER))
