diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2022-09-21 10:03:30 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2022-09-21 11:44:09 +0900 |
commit | 437800d3b0bdacf30b82fff15dd5532fbf65c3ab (patch) | |
tree | 03a51e316c81d20a53917aed8f2ac9cb4ae533f9 /ext/pty | |
parent | 45741918e1963fce3416b253712cfd4745368e7f (diff) | |
download | ruby-437800d3b0bdacf30b82fff15dd5532fbf65c3ab.tar.gz |
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.
Diffstat (limited to 'ext/pty')
-rw-r--r-- | ext/pty/pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 155d215942..acec33f9bf 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -170,7 +170,7 @@ establishShell(int argc, VALUE *argv, struct pty_info *info, { int master, slave, status = 0; rb_pid_t pid; - char *p, *getenv(); + char *p; VALUE v; struct child_info carg; char errbuf[32]; |