#7343 closed bug (fixed)

Potential build issues on some UNIX versions

Reported by: SimonHengel Owned by:
Priority: normal Milestone:
Component: libraries/unix Version: 7.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:


In HsUnix.c unsetenv is used even if HAVE_UNSETENV is not defined. It's probably not a big deal as it has been like that for four years.

But AFAIK, this would at least fail to build with relatively recent versions of HPUX.

If we conclude that this check is not necessary, then I would remove them from System.Posix.Env, too.

Attachments (1)

0001-Only-use-unsetenv-if-HAVE_UNSETENV-is-defined-fixes-.patch (854 bytes) - added by SimonHengel 18 months ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 18 months ago by igloo

  • Difficulty set to Unknown
  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the report and patch; I've applied it.

Note: See TracTickets for help on using tickets.