* src/xterm.c (x_top_window_to_frame): Declare correctly on
no-toolkit builds.
#else /* !USE_X_TOOLKIT && !USE_GTK */
#define x_any_window_to_frame(d, i) x_window_to_frame (d, i)
-#define x_top_window_to_frame(d, i) x_window_to_frame (d, i)
+
+struct frame *
+x_top_window_to_frame (struct x_display_info *dpyinfo, int wdesc)
+{
+ return x_window_to_frame (dpyinfo, wdesc);
+}
#endif /* USE_X_TOOLKIT || USE_GTK */