shithub: jbig2

Download patch

ref: 29466e003185c7d4ea43e3a1633c0aa8a6286e7f
parent: a11b2b5223c1f1704105ed5a26c319e7efeba5de
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Tue Sep 2 22:56:29 EDT 2003

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.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@271 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/os_types.h
+++ b/os_types.h
@@ -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
--- a/snprintf.c
+++ b/snprintf.c
@@ -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>