diff options
Diffstat (limited to 'libraries/base/GHC/Event')
-rw-r--r-- | libraries/base/GHC/Event/KQueue.hsc | 4 | ||||
-rw-r--r-- | libraries/base/GHC/Event/Poll.hsc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libraries/base/GHC/Event/KQueue.hsc b/libraries/base/GHC/Event/KQueue.hsc index a76cc51b52..e9c8419ea7 100644 --- a/libraries/base/GHC/Event/KQueue.hsc +++ b/libraries/base/GHC/Event/KQueue.hsc @@ -56,7 +56,7 @@ import Data.Int (Int64) -- Handle brokenness on some BSD variants, notably OS X up to at least -- 10.6. If NOTE_EOF isn't available, we have no way to receive a -- notification from the kernel when we reach EOF on a plain file. -#ifndef NOTE_EOF +#if !defined(NOTE_EOF) # define NOTE_EOF 0 #endif @@ -132,7 +132,7 @@ data Event = KEvent { , filter :: {-# UNPACK #-} !Filter , flags :: {-# UNPACK #-} !Flag , fflags :: {-# UNPACK #-} !FFlag -#ifdef netbsd_HOST_OS +#if defined(netbsd_HOST_OS) , data_ :: {-# UNPACK #-} !Int64 #else , data_ :: {-# UNPACK #-} !CIntPtr diff --git a/libraries/base/GHC/Event/Poll.hsc b/libraries/base/GHC/Event/Poll.hsc index 5c5ad494ca..74525c6b40 100644 --- a/libraries/base/GHC/Event/Poll.hsc +++ b/libraries/base/GHC/Event/Poll.hsc @@ -158,7 +158,7 @@ newtype Event = Event CShort -- We have to duplicate the whole enum like this in order for the -- hsc2hs cross-compilation mode to work -#ifdef POLLRDHUP +#if defined(POLLRDHUP) #{enum Event, Event , pollIn = POLLIN , pollOut = POLLOUT |