mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-19 18:20:22 +02:00
Update Gnulib to v0.0-6523-gb3609c1.
This commit is contained in:
parent
fe4ea6859e
commit
35428fb6b2
142 changed files with 4555 additions and 2443 deletions
11
lib/open.c
11
lib/open.c
|
@ -16,13 +16,16 @@
|
|||
|
||||
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
|
||||
|
||||
/* If the user's config.h happens to include <fcntl.h>, let it include only
|
||||
the system's <fcntl.h> here, so that orig_open doesn't recurse to
|
||||
rpl_open. */
|
||||
#define __need_system_fcntl_h
|
||||
#include <config.h>
|
||||
|
||||
/* Get the original definition of open. It might be defined as a macro. */
|
||||
#define __need_system_fcntl_h
|
||||
#include <fcntl.h>
|
||||
#undef __need_system_fcntl_h
|
||||
#include <sys/types.h>
|
||||
#undef __need_system_fcntl_h
|
||||
|
||||
static inline int
|
||||
orig_open (const char *filename, int flags, mode_t mode)
|
||||
|
@ -31,7 +34,9 @@ orig_open (const char *filename, int flags, mode_t mode)
|
|||
}
|
||||
|
||||
/* Specification. */
|
||||
#include <fcntl.h>
|
||||
/* Write "fcntl.h" here, not <fcntl.h>, otherwise OSF/1 5.1 DTK cc eliminates
|
||||
this include because of the preliminary #include <fcntl.h> above. */
|
||||
#include "fcntl.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdarg.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue