summaryrefslogtreecommitdiff
path: root/src/xterm.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-08-23 20:52:41 +0800
committerPo Lu <luangruo@yahoo.com>2022-08-23 20:53:24 +0800
commita328bf65ef31d0134fc3d522f28b2da000a5e742 (patch)
tree3992ad52247bf1dd0eef4be0e1103a00b7723053 /src/xterm.h
parent3b7fb723e6a02e760e18942f577f21a88ad852a8 (diff)
downloademacs-a328bf65ef31d0134fc3d522f28b2da000a5e742.tar.gz
Make frame synchronization conditional on clock_gettime
* src/xfns.c (x_set_parent_frame) (x_set_use_frame_synchronization): * src/xterm.c (x_update_begin, show_back_buffer, x_update_end) (x_display_set_last_user_time, handle_one_xevent): * src/xterm.h (struct x_output): Define out vsync code when !HAVE_CLOCK_GETTIME. (bug#57346)
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 75277c166e0..8500ec27710 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -1577,7 +1577,8 @@ extern void x_make_frame_invisible (struct frame *);
extern void x_iconify_frame (struct frame *);
extern void x_free_frame_resources (struct frame *);
extern void x_wm_set_size_hint (struct frame *, long, bool);
-#if defined HAVE_XSYNCTRIGGERFENCE && !defined USE_GTK
+#if defined HAVE_XSYNCTRIGGERFENCE && !defined USE_GTK \
+ && defined HAVE_CLOCK_GETTIME
extern void x_sync_init_fences (struct frame *);
#endif