diff options
author | pommicket <pommicket@gmail.com> | 2025-06-16 15:12:22 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-06-16 15:12:22 -0400 |
commit | fa86290a0a104f2284a8ff9803c697d85b1c885d (patch) | |
tree | 082459ff5731bde30b3b9d775159a34fbf239dea | |
parent | 439be25e27f614a28301c291794c3664c634b21c (diff) |
fix inotify ifdefs
-rw-r--r-- | buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3293,8 +3293,8 @@ void buffer_new_file(TextBuffer *buffer, const char *path) { static bool buffer_write_to_file(TextBuffer *buffer, const char *path) { const Settings *settings = buffer_settings(buffer); - Ted *ted = buffer->ted; #if HAS_INOTIFY + Ted *ted = buffer->ted; if (buffer->inotify_watch != -1) { // temporarily stop inotify events while we're writing to the buffer inotify_rm_watch(ted->inotify_fd, buffer->inotify_watch); @@ -4247,6 +4247,7 @@ void buffer_set_manual_tab_width(TextBuffer *buffer, u8 n) { buffer->manual_indentation = true; } +#if HAS_INOTIFY int buffer_inotify_watch(TextBuffer *buffer) { return buffer->inotify_watch; } @@ -4254,3 +4255,4 @@ int buffer_inotify_watch(TextBuffer *buffer) { void buffer_set_inotify_modified(TextBuffer *buffer) { buffer->inotify_modified = true; } +#endif |