зеркало из https://github.com/github/ruby.git
[ruby/etc] Declare `getlogin` even if unistd.h is not available
Although MinGW provides this header but not the function, Windows version ruby provides the function. https://github.com/ruby/etc/commit/f7fa1884fa
This commit is contained in:
Родитель
f4bf80623f
Коммит
47cb789332
|
@ -14,8 +14,6 @@
|
|||
#include <sys/types.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#else
|
||||
char *getlogin(void);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GETPWENT
|
||||
|
@ -56,6 +54,7 @@ static VALUE sGroup;
|
|||
# include <stdlib.h>
|
||||
# endif
|
||||
#endif
|
||||
char *getlogin(void);
|
||||
|
||||
#define RUBY_ETC_VERSION "1.4.2"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче