From fd6ca99bd3a00f6fdfd5d2663c2e5dab8b605b09 Mon Sep 17 00:00:00 2001 From: simonm Date: Tue, 14 Apr 1998 09:29:26 +0000 Subject: [PATCH] [project @ 1998-04-14 09:29:26 by simonm] add comment about why NON_POSIX_SOURCE is required. --- ghc/tests/codeGen/should_run/cg035.hs | 4 ++++ 1 file changed, 4 insertions(+) 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 ) -- 1.7.10.4