This commit is contained in:
Jaeden Amero 2024-11-14 00:45:37 +05:30 committed by GitHub
commit c87742a202
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#ifndef _WIN32
#include <sys/socket.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <poll.h>
#include <signal.h>

View File

@ -3,8 +3,13 @@
/* (C)ChaN, 2018 */
/*------------------------------------------------------------------------*/
#ifdef _WIN32
/* Windows will not define localtime_r for us unless we explicitly request it
* with macros. */
#define _POSIX_SOURCE
#define _POSIX_THREAD_SAFE_FUNCTIONS
#endif
#include <time.h>
#include "ff.h"