mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 15:08:13 +02:00
Fix building on macOS with termios.h
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user