mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
getenv: is in stdlib.h
getenv is a very basic function that has been in stdlib.h since ISO/IEC 9899:1990. There is absolutely zero need for us to redeclare. pty.c already includes stdlib.h out of the box so we need nothing.
This commit is contained in:
parent
45741918e1
commit
437800d3b0
Notes:
git
2022-09-21 11:44:32 +09:00
2 changed files with 7 additions and 3 deletions
|
@ -47,8 +47,12 @@ static VALUE sGroup;
|
||||||
#define HAVE_UNAME 1
|
#define HAVE_UNAME 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifdef STDC_HEADERS
|
||||||
char *getenv();
|
# include <stdlib.h>
|
||||||
|
#else
|
||||||
|
# ifdef HAVE_STDLIB_H
|
||||||
|
# include <stdlib.h>
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
char *getlogin();
|
char *getlogin();
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@ establishShell(int argc, VALUE *argv, struct pty_info *info,
|
||||||
{
|
{
|
||||||
int master, slave, status = 0;
|
int master, slave, status = 0;
|
||||||
rb_pid_t pid;
|
rb_pid_t pid;
|
||||||
char *p, *getenv();
|
char *p;
|
||||||
VALUE v;
|
VALUE v;
|
||||||
struct child_info carg;
|
struct child_info carg;
|
||||||
char errbuf[32];
|
char errbuf[32];
|
||||||
|
|
Loading…
Reference in a new issue