rev 271 - trunk

[email protected] Wed, 1 Oct 2003 10:36:24 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.jbig2dec.cvs
Message-ID <[email protected]>
Author: giles
Date: 2003-09-02 19:56:29 -0700 (Tue, 02 Sep 2003)
New Revision: 271

Modified:
   trunk/os_types.h
   trunk/snprintf.c
Log:
Apply a patch to support compilation on VMS (as part of Ghostscript with openvms.mmk). Closes
http://bugs.ghostscript.com/show_bug.cgi?id=686966.


Modified: trunk/os_types.h
===================================================================
--- trunk/os_types.h	2003-08-01 14:57:32 UTC (rev 270)
+++ trunk/os_types.h	2003-09-03 02:56:29 UTC (rev 271)
@@ -13,7 +13,7 @@
     Artifex Software, Inc.,  101 Lucas Valley Road #110,
     San Rafael, CA  94903, U.S.A., +1(415)492-9861.
         
-    $Id: os_types.h,v 1.1 2002/07/20 17:23:15 giles Exp $
+    $Id$
 */
 
 /*
@@ -32,4 +32,6 @@
 
 #if defined(HAVE_STDINT_H) || defined(__MACOS__)
 #include <stdint.h>
+#elif defined(__VMS)
+#include <inttypes.h>
 #endif

Modified: trunk/snprintf.c
===================================================================
--- trunk/snprintf.c	2003-08-01 14:57:32 UTC (rev 270)
+++ trunk/snprintf.c	2003-09-03 02:56:29 UTC (rev 271)
@@ -24,7 +24,11 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifdef __VMS
+#include <param.h>
+#else
 #include <sys/param.h>
+#endif
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <signal.h>