Fix building on macOS with termios.h

This commit is contained in:
Kovid Goyal 2018-06-08 15:41:34 +05:30
parent 19721014d0
commit 04afe969a0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -11,8 +11,6 @@
#include <unistd.h>
#undef _DARWIN_C_SOURCE
#endif
#define _DEFAULT_SOURCE
#include <termios.h>
#include "data-types.h"
#include "control-codes.h"
#include "modes.h"
@ -23,6 +21,7 @@
#ifdef WITH_PROFILER
#include <gperftools/profiler.h>
#endif
#include <termios.h>
/* To millisecond (10^-3) */
#define SEC_TO_MS 1000