1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 08:48:01 +00:00

Define O_CLOEXEC for older headers that don't have it.

This commit is contained in:
Con Kolivas 2012-01-28 16:13:49 +11:00
parent 5af40de97c
commit 80650dd919

View File

@ -17,6 +17,9 @@
#include <termios.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
#else
#include <windows.h>
#include <io.h>