Hi,

I am using the getlogin module.  My mingw cross-compile detects the
presence of getlogin, but it seems that one has to actually define
_POSIX to get the declaration.  However if I define _POSIX before
including anything else, I get this error:

      CC       posix.lo
    In file included from 
/usr/i686-w64-mingw32/sys-root/mingw/include/sched.h:124:0,
                     from ../../libguile/posix.c:34:
    ../lib/time.h:468:1: error: expected identifier or '(' before '{' token
    ../lib/time.h:490:1: error: expected identifier or '(' before '{' token
      CC       guile-guile.o
    In file included from ../../libguile/posix.c:97:0:
    ../lib/signal.h:400:22: error: conflicting types for 'sigset_t'
    In file included from ../lib/sys/types.h:27:0,
                     from ../lib/stdio.h:58,
                     from ../../libguile/posix.c:29:
    /usr/i686-w64-mingw32/sys-root/mingw/include/sys/types.h:110:19: note: 
previous declaration of 'sigset_t' was here

This is gnulib-tool (GNU gnulib 2013-02-14 21:14:18) 0.0.7865-a828, and
the build platform is an updated Fedora 18 system on x86-64.

It would be great if getlogin just did the right thing :)

Andy
-- 
http://wingolog.org/

Reply via email to