1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-24 22:59:49 +05:30

reverse-ramdisk.c: set POSIX detection

This commit is contained in:
Intel A80486DX2-66 2023-12-28 00:02:52 +03:00
parent df2d4f3dd9
commit 3bfedd252d
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -18,7 +18,14 @@ To-Do: error handling on line 184, function fread()
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#if _POSIX_VERSION >= 200809L && defined(_POSIX_SYNCHRONIZED_IO)
# include <fcntl.h>
# include <unistd.h>
# define IS_POSIX 1
#else
# define IS_POSIX 0
#endif
#ifdef DEBUG
# define line_fail(x) do { \