mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Avoid O_CLOEXEC for portability
This commit is contained in:
parent
b71a5bfc40
commit
a0852146c9
1 changed files with 4 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
/* $NetBSD: private.h,v 1.56 2020/05/25 14:52:48 christos Exp $ */
|
||||
|
||||
#ifndef __UNCONST
|
||||
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
|
||||
#define __UNCONST(a) ((void *)(const void *)(a))
|
||||
#endif
|
||||
|
||||
#ifndef _DIAGASSERT
|
||||
|
@ -543,10 +543,9 @@ typedef time_tz tz_time_t;
|
|||
*/
|
||||
|
||||
#ifdef O_BINARY
|
||||
#define OPEN_MODE (O_RDONLY | O_BINARY | O_CLOEXEC)
|
||||
#endif /* defined O_BINARY */
|
||||
#ifndef O_BINARY
|
||||
#define OPEN_MODE (O_RDONLY | O_CLOEXEC)
|
||||
#define OPEN_MODE (O_RDONLY | O_BINARY)
|
||||
#else
|
||||
#define OPEN_MODE (O_RDONLY)
|
||||
#endif /* !defined O_BINARY */
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue