diff --git a/src/core-utils/core-utils.c b/src/core-utils/core-utils.c index 93b31b3dc6..288ebc3d20 100644 --- a/src/core-utils/core-utils.c +++ b/src/core-utils/core-utils.c @@ -31,6 +31,8 @@ * see header for info. \********************************************************************/ +#ifndef HAVE_SETENV + int gnc_setenv(const char *name, const char *value, int overwrite) { @@ -76,3 +78,4 @@ gnc_unsetenv(const char *name) return result; } +#endif diff --git a/src/core-utils/core-utils.h b/src/core-utils/core-utils.h index f4ea027592..d551315ce3 100644 --- a/src/core-utils/core-utils.h +++ b/src/core-utils/core-utils.h @@ -51,5 +51,4 @@ int gnc_unsetenv(const char *name); #error "Must have setenv or putenv." #endif - #endif