diff options
author | Andy Wingo <wingo@pobox.com> | 2013-03-09 23:55:01 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2013-03-09 23:55:01 +0100 |
commit | 94c53e0601c3fb4a4dcd6d3bd602347a8253c167 (patch) | |
tree | 44b1cdc023dde6ef95dc223330af2bd861b969cd /libguile/posix.c | |
parent | aa59904eaec70c95fa95960f98ba9cbc62010e8d (diff) | |
download | guile-94c53e0601c3fb4a4dcd6d3bd602347a8253c167.tar.gz |
provide getlogin declaration if needed.
* configure.ac: Check for getlogin decl.
* libguile/posix.c: Declare getlogin if needed.
Diffstat (limited to 'libguile/posix.c')
-rw-r--r-- | libguile/posix.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libguile/posix.c b/libguile/posix.c index be4714b6a..99f758f3a 100644 --- a/libguile/posix.c +++ b/libguile/posix.c @@ -155,6 +155,13 @@ int sethostname (char *name, size_t namelen); #endif +#if defined HAVE_GETLOGIN && !HAVE_DECL_GETLOGIN +/* MinGW doesn't supply this decl; see + http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00030.html for more + details. */ +char *getlogin (void); +#endif + /* On NextStep, <utime.h> doesn't define struct utime, unless we #define _POSIX_SOURCE before #including it. I think this is less of a kludge than defining struct utimbuf ourselves. */ |