$OpenBSD: patch-src_gui_main_cpp,v 1.3 2020/01/29 11:02:06 cwen Exp $
Index: src/gui/main.cpp
--- src/gui/main.cpp.orig
+++ src/gui/main.cpp
@@ -29,6 +29,9 @@
  *   
  *   
 */
+#ifdef QT_GUI_LIB
+#include <cstdlib>
+#endif
 #include <config.h>
 #ifndef WIN32
 #include <stdlib.h>
