From: simonm Date: Tue, 14 Apr 1998 09:29:26 +0000 (+0000) Subject: [project @ 1998-04-14 09:29:26 by simonm] X-Git-Tag: Approx_2487_patches~804 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=fd6ca99bd3a00f6fdfd5d2663c2e5dab8b605b09;p=ghc-hetmet.git [project @ 1998-04-14 09:29:26 by simonm] add comment about why NON_POSIX_SOURCE is required. --- diff --git a/ghc/tests/codeGen/should_run/cg035.hs b/ghc/tests/codeGen/should_run/cg035.hs index 1b4c930..7b7b7d0 100644 --- a/ghc/tests/codeGen/should_run/cg035.hs +++ b/ghc/tests/codeGen/should_run/cg035.hs @@ -1,5 +1,9 @@ {-# OPTIONS -optc-DNON_POSIX_SOURCE #-} +-- The above option is required because 'erf' isn't a POSIX function, and we +-- need a prototype for it in order to compile the following code correctly. +-- Defining NON_POSIX_SOURCE tells the RTS not to define _POSIX_SOURCE. + module Main (main) where import IOExts ( unsafePerformIO )