[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getlogin and mingw

From: Andy Wingo
Subject: getlogin and mingw
Date: Sat, 09 Mar 2013 23:49:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)


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 
                     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 :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]