Updates for OpenVMS
in utilsunx.cpp : OpenVMS does not have fork. So I use vfork there although
the source warns me that it may be broken on some systems.
Modified Files:
wxWindows/setup.h_vms wxWindows/src/unix/utilsunx.cpp
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17011
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/* the installation location prefix from configure */
#undef wxINSTALL_PREFIX
/* the installation location prefix from configure */
#undef wxINSTALL_PREFIX
+/* Define this to get extra features from GNU libc. */
+#undef _GNU_SOURCE
+
/* Define to `int' if <sys/types.h> doesn't define. */
#undef gid_t
/* Define to `int' if <sys/types.h> doesn't define. */
#undef gid_t
/* Define if you have support for large (64 bit size) files */
#undef HAVE_LARGEFILE_SUPPORT
/* Define if you have support for large (64 bit size) files */
#undef HAVE_LARGEFILE_SUPPORT
-/* Required by HAVE_LARGEFILE_SUPPORT on some systems */
-#undef _FILE_OFFSET_BITS
-
-/* Ditto */
-#undef _LARGE_FILES
-
/* Define if you have localtime() */
#define HAVE_LOCALTIME
/* Define if you have localtime() */
#define HAVE_LOCALTIME
/* Define if you have wcsrtombs() function */
#define HAVE_WCSRTOMBS 1
/* Define if you have wcsrtombs() function */
#define HAVE_WCSRTOMBS 1
+/* Define this if you have fputws() and putwc() */
+#define HAVE_FPUTWC 1
+
+/* Define this if you have wprintf() and related functions */
+#define HAVE_WPRINTF 1
+
+/* Define this if you have vswprintf() and related functions */
+#define HAVE_VSWPRINTF 1
+
/* Define this if you are using gtk and gdk contains support for X11R6 XIM */
#undef HAVE_XIM
/* Define this if you are using gtk and gdk contains support for X11R6 XIM */
#undef HAVE_XIM
+/* ---------------------------------------------------------------------
+ Win32 adjustments section
+ ---------------------------------------------------------------------
+ */
+
+#ifdef __WIN32__
+
+/* we need to define wxUSE_XPM_IN_MSW for MSW compilation for compatibil
+ with wx/msw/setup.h */
+#define wxUSE_XPM_IN_MSW wxUSE_XPM
+
+#endif /* __WIN32__ */
+
/* --------------------------------------------------------*
* This stuff is static, it doesn't get modified directly
* by configure.
/* --------------------------------------------------------*
* This stuff is static, it doesn't get modified directly
* by configure.
//
// NB: do *not* use vfork() here, it completely breaks this code for some
// reason under Solaris (and maybe others, although not under Linux)
//
// NB: do *not* use vfork() here, it completely breaks this code for some
// reason under Solaris (and maybe others, although not under Linux)
- pid_t pid = fork();
- if ( pid == -1 ) // error?
+ // But on OpenVMS we do not have fork so we have to use vfork and
+ // cross our fingers that it works.
+#ifdef __VMS
+ pid_t pid = vfork();
+#else
+ pid_t pid = fork();
+#endif
+ if ( pid == -1 ) // error?
{
wxLogSysError( _("Fork failed") );
{
wxLogSysError( _("Fork failed") );