Skip to content

Commit

Permalink
fix for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl committed Nov 7, 2024
1 parent 185b226 commit 25659bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arm-wt-22k/src/hostmm_ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
#include <stdlib.h>
#include <string.h>

#if defined(__unix__) || defined(__unix)
#if defined(__linux__)
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#elif defined (_WIN32)
#include <io.h>
#include <windows.h>
#elif defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
#include <unistd.h>
#endif

/* Only for debugging LED, vibrate, and backlight functions */
Expand Down

0 comments on commit 25659bb

Please sign in to comment.