diff options
Diffstat (limited to 'src/stdio/_stdio.h')
| -rw-r--r-- | src/stdio/_stdio.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/stdio/_stdio.h b/src/stdio/_stdio.h index 3335fa7e..84ad60ca 100644 --- a/src/stdio/_stdio.h +++ b/src/stdio/_stdio.h @@ -3,9 +3,14 @@ #include <stdarg.h> #include <stdio.h> -#include "../sys/types/pid_t.c" #include "nonstd/internal.h" +#ifdef _POSIX_C_SOURCE +#include <sys/types.h> +#else +#include "../sys/types/pid_t.c" +#endif + struct __FILE { fpos_t pos; char *buf; @@ -49,9 +54,9 @@ struct io_options { int __printf(struct io_options * restrict, const char * restrict, va_list); int __scanf(struct io_options * restrict, const char * restrict, va_list); -#ifndef _POSIX_C_SOURCE -#define flockfile(...) -#define funlockfile(...) +#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 199506L +#define flockfile(_file) (void)(_file) +#define funlockfile(_file) (void)(_file) #endif #endif |
