1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

* posix.c: Replaced `#define' of __USE_XOPEN right before

including unistd.h with a define of _GNU_SOURCE at the very top of
the file.
This commit is contained in:
Marius Vollmer 2001-03-10 01:07:06 +00:00
parent 783e777478
commit 8b50fe8ed3

View file

@ -44,6 +44,9 @@
/* Make GNU/Linux libc declare everything it has. */
#define _GNU_SOURCE
#include <stdio.h>
#include "libguile/_scm.h"
#include "libguile/fports.h"
@ -71,8 +74,6 @@
#endif
#ifdef HAVE_UNISTD_H
/* GNU/Linux libc requires __USE_XOPEN or cuserid() is not defined. */
#define __USE_XOPEN
#include <unistd.h>
#else
#ifndef ttyname