unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* _POSIX_C_SOURCE causes trouble on FreeBSD
@ 2004-09-08  6:42 Andreas Vögele
  2004-09-08 22:09 ` Kevin Ryde
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Vögele @ 2004-09-08  6:42 UTC (permalink / raw)


If the macro _POSIX_C_SOURCE, which is used in stime.c and filesys.c, 
is defined FreeBSD doesn't declare XOPEN and BSD functions like 
strptime and fchmod. Since _POSIX_C_SOURCE also causes trouble when 
building Guile with Mingw I suggest to remove this definition 
completely or to use

#ifdef __hpux
#define _POSIX_C_SOURCE 199506L
#endif

I'd remove the definition. AFAIK it's only required on HP-UX and it 
seems that nobody besides me has ever tried to use Guile on HP-UX. I 
can always add this definition to CPPFLAGS before running configure. 
Furthermore, I think it's more important to get Guile running on 
FreeBSD and to avoid an ifdef mess in the source code.



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: _POSIX_C_SOURCE causes trouble on FreeBSD
  2004-09-08  6:42 _POSIX_C_SOURCE causes trouble on FreeBSD Andreas Vögele
@ 2004-09-08 22:09 ` Kevin Ryde
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2004-09-08 22:09 UTC (permalink / raw)
  Cc: bug-guile

Andreas Vögele <voegelas@gmx.net> writes:
>
> #ifdef __hpux
> #define _POSIX_C_SOURCE 199506L
> #endif

Thanks, I made that change.

> an ifdef mess in the source code.

Perhaps a configure test could figure something out.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-08 22:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-08  6:42 _POSIX_C_SOURCE causes trouble on FreeBSD Andreas Vögele
2004-09-08 22:09 ` Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).