mirror of
https://github.com/mvp/uhubctl.git
synced 2026-05-17 00:16:13 +03:00
always include <fcntl.h>
4a233824c4 fixed issue for Raspberry Pi on Linux, but broke compilation on Mac.
Fixing it by always including <fcntl.h>.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <getopt.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <windows.h>
|
||||
@@ -43,9 +44,6 @@
|
||||
#include <time.h> /* for nanosleep */
|
||||
#endif
|
||||
|
||||
#if defined(__gnu_linux__) || defined(__linux__)
|
||||
#include <fcntl.h> /* for open() / O_WRONLY */
|
||||
#endif
|
||||
|
||||
/* cross-platform sleep function */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user