Fix building on macOS with termios.h
This commit is contained in:
parent
19721014d0
commit
04afe969a0
@ -11,8 +11,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#undef _DARWIN_C_SOURCE
|
#undef _DARWIN_C_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#define _DEFAULT_SOURCE
|
|
||||||
#include <termios.h>
|
|
||||||
#include "data-types.h"
|
#include "data-types.h"
|
||||||
#include "control-codes.h"
|
#include "control-codes.h"
|
||||||
#include "modes.h"
|
#include "modes.h"
|
||||||
@ -23,6 +21,7 @@
|
|||||||
#ifdef WITH_PROFILER
|
#ifdef WITH_PROFILER
|
||||||
#include <gperftools/profiler.h>
|
#include <gperftools/profiler.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <termios.h>
|
||||||
|
|
||||||
/* To millisecond (10^-3) */
|
/* To millisecond (10^-3) */
|
||||||
#define SEC_TO_MS 1000
|
#define SEC_TO_MS 1000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user