From: Jouk Jansen Date: Fri, 6 Sep 2002 06:10:53 +0000 (+0000) Subject: Committing in . X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b2ddee86fe73c5ae8edc59871fea9f40e84cbc2d Committing in . 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 --- diff --git a/setup.h_vms b/setup.h_vms index 872b63304e..9b4a173c66 100644 --- a/setup.h_vms +++ b/setup.h_vms @@ -35,6 +35,9 @@ /* 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 doesn't define. */ #undef gid_t @@ -926,12 +929,6 @@ /* 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 @@ -1124,9 +1121,31 @@ /* 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 +/* --------------------------------------------------------------------- + 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. diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 53f09c4b84..4cb88a61b9 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -566,8 +566,14 @@ long wxExecute(wxChar **argv, // // 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") );