diff --git a/kitty/ringbuf.c b/3rdparty/ringbuf/ringbuf.c similarity index 100% rename from kitty/ringbuf.c rename to 3rdparty/ringbuf/ringbuf.c diff --git a/kitty/ringbuf.h b/3rdparty/ringbuf/ringbuf.h similarity index 100% rename from kitty/ringbuf.h rename to 3rdparty/ringbuf/ringbuf.h diff --git a/kitty/history.c b/kitty/history.c index f42736a32..6a79cb713 100644 --- a/kitty/history.c +++ b/kitty/history.c @@ -9,7 +9,7 @@ #include "lineops.h" #include "charsets.h" #include -#include "ringbuf.h" +#include "../3rdparty/ringbuf/ringbuf.h" extern PyTypeObject Line_Type; #define SEGMENT_SIZE 2048 diff --git a/setup.py b/setup.py index 43154ee7f..d314410d2 100755 --- a/setup.py +++ b/setup.py @@ -803,6 +803,8 @@ def find_c_files() -> Tuple[List[str], List[str]]: headers.append(os.path.join('kitty', x)) ans.append('kitty/vt-parser-dump.c') + # ringbuf + ans.append('3rdparty/ringbuf/ringbuf.c') # base64 ans.extend(glob.glob('3rdparty/base64/lib/arch/*/codec.c')) ans.append('3rdparty/base64/lib/tables/tables.c')