Skip to content

Commit 8ee1fec

Browse files
authored
Restrict load environ
1 parent 4f6ab02 commit 8ee1fec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

luaApp/src/luaEpics.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ epicsShareFunc void luaLoadMacros(lua_State* state, const char* macro_list)
178178

179179
epicsShareFunc void luaLoadEnviron(lua_State* state)
180180
{
181+
#if defined(__unix__)
181182
extern char** environ;
182183
char** sp;
183184

@@ -193,4 +194,5 @@ epicsShareFunc void luaLoadEnviron(lua_State* state)
193194
lua_pushstring(state, var_val.c_str());
194195
lua_setglobal(state, var_name.c_str());
195196
}
197+
#endif
196198
}

0 commit comments

Comments
 (0)