[project @ 2002-02-12 11:44:54 by simonmar]
[ghc-hetmet.git] / ghc / lib / std / cbits / PrelIOUtils.c
index a6ad8a1..edbd898 100644 (file)
@@ -198,7 +198,7 @@ void     prel_poke_lflag(struct termios* ts, tcflag_t t) { ts->c_lflag = t; }
 unsigned char* prel_ptr_c_cc(struct termios* ts) { return ((unsigned char*)(ts + offsetof(struct termios, c_cc))); }
 #endif
 
-int prel_sizeof_termios()
+HsInt prel_sizeof_termios()
 {
 #ifndef mingw32_TARGET_OS
   return sizeof(struct termios);
@@ -207,10 +207,10 @@ int prel_sizeof_termios()
 #endif
 }
 
-int prel_sizeof_sigset_t()
+HsInt prel_sizeof_sigset_t()
 {
 #ifndef mingw32_TARGET_OS
-  return sizeof(struct sigset_t);
+  return sizeof(sigset_t);
 #else
   return 0;
 #endif
@@ -225,7 +225,7 @@ int prel_echo()
 #endif
 
 }
-extern int prel_tcsanow()
+int prel_tcsanow()
 {
 #ifdef TCSANOW
   return TCSANOW;