Re: [MOD] STR #4195: OpenBSD: error: 'intptr_t' undeclared

Michael Sweet <[email protected]> Sun, 30 Sep 2012 19:44:11 -0700 (PDT)
Newsgroups gmane.comp.printing.cups.bugs
Message-ID <[email protected]>
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Closed w/Resolution]

Fixed in Subversion repository.

I added a configure check since stdint.h isn't universally available... :/

Link: http://www.cups.org/str.php?L4195
Version: 1.6.1
Fix Version: 1.7-current (r10627)

_______________________________________________
cups-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/cups-bugs
str4195.patch (text/plain, 1.2 KB)
Index: config-scripts/cups-common.m4
===================================================================
--- config-scripts/cups-common.m4	(revision 10619)
+++ config-scripts/cups-common.m4	(working copy)
@@ -130,6 +130,7 @@
 AC_CHECK_HEADER(langinfo.h,AC_DEFINE(HAVE_LANGINFO_H))
 AC_CHECK_HEADER(malloc.h,AC_DEFINE(HAVE_MALLOC_H))
 AC_CHECK_HEADER(shadow.h,AC_DEFINE(HAVE_SHADOW_H))
+AC_CHECK_HEADER(stdint.h,AC_DEFINE(HAVE_STDINT_H))
 AC_CHECK_HEADER(string.h,AC_DEFINE(HAVE_STRING_H))
 AC_CHECK_HEADER(strings.h,AC_DEFINE(HAVE_STRINGS_H))
 AC_CHECK_HEADER(bstring.h,AC_DEFINE(HAVE_BSTRING_H))
Index: filter/raster.c
===================================================================
--- filter/raster.c	(revision 10619)
+++ filter/raster.c	(working copy)
@@ -46,6 +46,9 @@
  */
 
 #include <cups/raster-private.h>
+#ifdef HAVE_STDINT_H
+#  include <stdint.h>
+#endif /* HAVE_STDINT_H */
 
 
 /*
Index: config.h.in
===================================================================
--- config.h.in	(revision 10619)
+++ config.h.in	(working copy)
@@ -175,6 +175,13 @@
 
 
 /*
+ * Use <stdint.h>?
+ */
+
+#undef HAVE_STDINT_H
+
+
+/*
  * Use <string.h>, <strings.h>, and/or <bstring.h>?
  */