[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getlogin on Windows systems
From: |
John W. Eaton |
Subject: |
getlogin on Windows systems |
Date: |
Thu, 7 Jan 2010 01:10:23 -0500 |
I'm using the glob module in GNU Octave and a Windows user complained
that linking failed with an undefined reference to getlogin.
The problem appears to be that getlogin_r is called from glob, and the
gnulib replacement for getlogin_r calls getlogin unconditionally, but
getlogin doesn't exist on Windows systems.
What would be the preferred way of fixing this problem? Should there
be a separate getlogin module? I see there is a
doc/posix-functions/getlogin.texi file and that getlogin is mentioned
in MODULES.html.sh and doc/gnulib.texi, but there doesn't appear to be
an actual getlogin module.
Providing a getlogin function for Windows should be fairly simple.
For example, there is one in the libgfortran sources:
http://gcc.gnu.org/viewcvs/trunk/libgfortran/intrinsics/getlog.c?view=markup
If adding a module is the thing to do, I could try to do it but I'm
still very new to the gnulib sources so I might need some guidance to
get all the details right.
Thanks,
jwe