diff --git a/network-info.cabal b/network-info.cabal
--- a/network-info.cabal
+++ b/network-info.cabal
@@ -1,5 +1,5 @@
 name:           network-info
-version:        0.2.0.7
+version:        0.2.0.8
 synopsis:       Access the local computer's basic network configuration
 
 description:    This library provides simple read-only access to the
diff --git a/src/Network/Info.hsc b/src/Network/Info.hsc
--- a/src/Network/Info.hsc
+++ b/src/Network/Info.hsc
@@ -29,9 +29,7 @@
 foreign import ccall unsafe "c_get_network_interfaces"
         c_get_network_interfaces :: Ptr NetworkInterface -> CInt -> IO CInt
 
-#let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t (y__); }, y__)
 
-
 ----------------------------------------------------------------------
 -- Network interfaces
 ----------------------------------------------------------------------
@@ -46,7 +44,7 @@
     } deriving (Show)
 
 instance Storable NetworkInterface where
-    alignment _ = #alignment struct network_interface
+    alignment _ = #const offsetof(struct {char x__; struct network_interface (y__); }, y__)
     sizeOf _    = #size struct network_interface
     peek ptr    = do
         name <- peekCWString $ (#ptr struct network_interface, name) ptr
