[project @ 1998-05-21 09:30:21 by simonm]
authorsimonm <unknown>
Thu, 21 May 1998 09:30:21 +0000 (09:30 +0000)
committersimonm <unknown>
Thu, 21 May 1998 09:30:21 +0000 (09:30 +0000)
Define _BSD_SOURCE to get this to compile under Linux w/ glibc.

ghc/runtime/main/Signals.lc

index 866f102..a85451b 100644 (file)
@@ -35,6 +35,12 @@ much pain.
 # define NON_POSIX_SOURCE
 #endif
 
+#if defined(linux_TARGET_OS) 
+# define NON_POSIX_SOURCE
+/* sigh, linux w/ glibc needs _BSD_SOURCE to get caddr_t... (ToDo) */
+# define _BSD_SOURCE
+#endif
+
 #if defined(osf3_TARGET_OS) || defined(osf1_TARGET_OS)
     /* The include files for OSF1 do not normally define SA_SIGINFO */
 # define _OSF_SOURCE 1