diff --git a/ghc/lib/misc/BSD.lhs b/ghc/lib/misc/BSD.lhs
index fae2966ae9bc81e5223f71942ace5ac7b3ffc95c..7f0232673b6c2b6779b70a4c86850b82d17d2e3f 100644
--- a/ghc/lib/misc/BSD.lhs
+++ b/ghc/lib/misc/BSD.lhs
@@ -437,7 +437,7 @@ unvectorizeHostAddrs :: Addr -> Int -> IO [Word]
 unvectorizeHostAddrs ptr n 
   | str == ``NULL'' = return []
   | otherwise = do
-	x <- _casm_ ``{ u_long tmp;
+	x <- _casm_ ``{ unsigned long tmp;
 		   if ((((struct hostent*)%0)->h_addr_list[(int)%1]) == NULL)
 		      tmp=(W_)0;
 		   else