Skip to content

Commit 1bb9936

Browse files
committed
Workaround for undefined reference to _environ
1 parent 7b90e94 commit 1bb9936

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

winsup/testsuite/winsup.api/ltp/execle01.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int exp_enos[]={0, 0}; /* Zero terminated list of expected errnos */
133133

134134
int pid; /* process id from fork */
135135
int status; /* status returned from waitpid */
136-
extern char **environ; /* pointer to this processes env, to pass along */
136+
char **environ; /* pointer to this processes env, to pass along */
137137

138138
int
139139
main(int ac, char **av)

winsup/testsuite/winsup.api/ltp/execve01.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int exp_enos[]={0, 0}; /* Zero terminated list of expected errnos */
134134
int pid; /* process id from fork */
135135
int status; /* status returned from waitpid */
136136
char *const args[2]={"/usr/bin/test", 0}; /* argument list for execve call */
137-
extern char **environ; /* pointer to this processes env, to pass along */
137+
char **environ; /* pointer to this processes env, to pass along */
138138

139139
int
140140
main(int ac, char **av)

0 commit comments

Comments
 (0)