Page MenuHome GnuPG

sm/misc.c uses setenv(), which is not portable
Closed, ResolvedPublic

Description

Release: 1.9.16

Environment

sparc-sun-solaris2.9
Compiler: Sun Studio 10

Description

misc.c uses setenv(), which does not exist on Solaris

How To Repeat

Compile on Solaris.

Fix

Use putenv(). See attached patch.

Event Timeline

The provied patch won't work as it writes to
read-only/unallocated memory. We will provide a gnulib
replacement function.

Added gnulib code to solve this. I can't test this hwoever.

werner removed a project: Testing.