[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:
parent
f4bf80623f
commit
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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user