Cygwin: fcntl.h: Use cdefs.h macros

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-11-26 15:41:41 +01:00
parent f3554bf890
commit 23e9b5cf3c
1 changed files with 5 additions and 6 deletions

View File

@ -9,7 +9,9 @@ details. */
#ifndef _FCNTL_H #ifndef _FCNTL_H
#define _FCNTL_H #define _FCNTL_H
#include <sys/cdefs.h>
#include <sys/fcntl.h> #include <sys/fcntl.h>
#define O_NDELAY _FNDELAY #define O_NDELAY _FNDELAY
/* F_LCK_MANDATORY: Request mandatory locks for this file descriptor. /* F_LCK_MANDATORY: Request mandatory locks for this file descriptor.
@ -42,14 +44,11 @@ details. */
#define __FALLOC_FL_TRUNCATE 0x0001 /* internal */ #define __FALLOC_FL_TRUNCATE 0x0001 /* internal */
#ifdef __cplusplus __BEGIN_DECLS
extern "C" {
#endif
extern int posix_fadvise (int, off_t, off_t, int); extern int posix_fadvise (int, off_t, off_t, int);
extern int posix_fallocate (int, off_t, off_t); extern int posix_fallocate (int, off_t, off_t);
#ifdef __cplusplus
} __END_DECLS
#endif
#endif /* _FCNTL_H */ #endif /* _FCNTL_H */