mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-11 02:03:22 +00:00
Fix build on macOS
This commit is contained in:
parent
a3a0684cf5
commit
e5cb67b9b3
1 changed files with 2 additions and 9 deletions
|
|
@ -5,17 +5,10 @@
|
|||
* Distributed under terms of the GPL3 license.
|
||||
*/
|
||||
|
||||
// We rely on data-types.h including Python.h which defines _DARWIN_C_SOURCE
|
||||
// which we need for _CS_DARWIN_USER_CACHE_DIR
|
||||
#include "../data-types.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
// Needed for _CS_DARWIN_USER_CACHE_DIR
|
||||
#define _DARWIN_C_SOURCE
|
||||
#include <unistd.h>
|
||||
#undef _DARWIN_C_SOURCE
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "launcher.h"
|
||||
#include "../safe-wrappers.h"
|
||||
#include <stdbool.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue