diff --git a/src/emacs.c b/src/emacs.c index abd0489caad..43f300eca9f 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1525,12 +1525,14 @@ main (argc, argv #endif #endif /* HAVE_X_WINDOWS */ +#ifdef HAVE_MENUS #ifndef HAVE_NTGUI #ifndef MAC_OS /* Called before init_window_once for Mac OS Classic. */ syms_of_xmenu (); #endif #endif +#endif #ifdef HAVE_NTGUI syms_of_w32term ();