Commit bb39e04d authored by Simon Marlow's avatar Simon Marlow
Browse files

Solaris: do not use timer_create

Submitted by: Karel Gardas <>
parent 48b95894
......@@ -73,6 +73,24 @@
* etc.).
#if defined(solaris2_HOST_OS)
/* USE_TIMER_CREATE is usually disabled for Solaris. In fact it is
supported well on this OS, but requires additional privilege. When
user does not have it, then the testing configure program fails
which results in USE_TIMER_CREATE not defined.
On the other hand when we cross-compile, then we optimistically
assume usage of timer_create function. The problem is that if we
cross compile for example from i386-solaris2 to x86_64-solaris2,
then the build fails with error like this:
ghc-stage2: timer_create: Not owner
which happens on first ghc-stage2 invocation. So to support
cross-compilation to Solaris we manually undefine USE_TIMER_CREATE
here */
#endif /* solaris2_HOST_OS */
#if defined(USE_TIMER_CREATE)
#elif defined(HAVE_SETITIMER)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment