mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 14:50:19 +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:
parent
783e777478
commit
8b50fe8ed3
1 changed files with 3 additions and 2 deletions
|
@ -44,6 +44,9 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Make GNU/Linux libc declare everything it has. */
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "libguile/_scm.h"
|
#include "libguile/_scm.h"
|
||||||
#include "libguile/fports.h"
|
#include "libguile/fports.h"
|
||||||
|
@ -71,8 +74,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
/* GNU/Linux libc requires __USE_XOPEN or cuserid() is not defined. */
|
|
||||||
#define __USE_XOPEN
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#else
|
#else
|
||||||
#ifndef ttyname
|
#ifndef ttyname
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue