[Domterm-discuss] Installing on Macos possible?
Per Bothner
per at bothner.com
Tue Jun 26 12:34:33 PDT 2018
On 06/26/2018 12:30 PM, hak wrote:
> new error :-)
> ---
>
> utils.c:459:38: error: use of undeclared identifier 'environ'; did you mean 'ev_run'?
> char **p = envarray ? envarray : environ;
> ^~~~~~~
Does the attached patch (just adding a declaration for environ) fix it?
--
--Per Bothner
per at bothner.com http://per.bothner.com/
-------------- next part --------------
diff --git a/lws-term/utils.c b/lws-term/utils.c
index 2fe3a6d..cb23304 100644
--- a/lws-term/utils.c
+++ b/lws-term/utils.c
@@ -456,6 +456,7 @@ extract_command_from_list(const char *list, const char **startp,
char *
getenv_from_array(char* key, char**envarray)
{
+ extern char **environ;
char **p = envarray ? envarray : environ;
int keylen = strlen(key);
for (; *p; p++) {
More information about the Domterm-discuss
mailing list