]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_gui.C
fix "make dist" target
[lyx.git] / src / lyx_gui.C
index 8964860e0b1142da61a3bd602a4bd6d77822f8b1..c7cd7262dfba0ea3788e2b767cba952175f89ec5 100644 (file)
@@ -19,8 +19,8 @@
 #include "lyx_gui.h"
 #include FORMS_H_LOCATION
 #include "support/filetools.h"
-#include "lyx.h"
-#include "form1.h"
+#include "support/os.h"
+#include "figure_form.h"
 #include "print_form.h"
 #include "tex-strings.h"
 #include "lyx_main.h"
@@ -118,6 +118,7 @@ LyXGUI::LyXGUI(LyX * owner, int * argc, char * argv[], bool GUI)
        Display * display = fl_get_display();
        if (!display) {
                lyxerr << "LyX: unable to access X display, exiting" << endl;
+               os::warn("Unable to access X display, exiting");
                exit(1);
        }
        fcntl(ConnectionNumber(display), F_SETFD, FD_CLOEXEC);