Opened 5 years ago

Closed 5 years ago

#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 Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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 5 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 5 years ago by igloo

difficulty: Unknown
Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.