Переглянути джерело

apply same fix as today's libpixman for FreeBSD, which does't unconditionally provide stdint.h

Michael Schloh von Bennewitz 20 роки тому
батько
коміт
bc8d49b639
2 змінених файлів з 42 додано та 1 видалено
  1. 41 0
      cairo/cairo.patch
  2. 1 1
      cairo/cairo.spec

+ 41 - 0
cairo/cairo.patch

@@ -143,3 +143,44 @@ Index: src/cairo-xlib.h
  #endif /* CAIRO_HAS_XLIB_SURFACE */
  #endif /* CAIRO_XLIB_H */
  
+Index: src/cairoint.h
+--- src/cairoint.h.orig	2005-03-04 18:57:54 +0100
++++ src/cairoint.h	2005-03-30 17:39:07 +0200
+@@ -54,7 +54,16 @@
+ #include <string.h>
+ #include <math.h>
+ #include <limits.h>
+-#include <stdint.h>
++
++#if defined (__SVR4) && defined (__sun)
++# include <sys/int_types.h>
++#else
++# if defined (__OpenBSD__) || defined (__FreeBSD__)
++#  include <inttypes.h>
++# else 
++#  include <stdint.h>
++# endif
++#endif
+ 
+ #include "cairo.h"
+ 
+Index: src/cairo-wideint.h
+--- src/cairo-wideint.h.orig	2005-02-22 20:24:50 +0100
++++ src/cairo-wideint.h	2005-03-30 17:42:19 +0200
+@@ -38,7 +38,15 @@
+ #ifndef CAIRO_WIDEINT_H
+ #define CAIRO_WIDEINT_H
+ 
+-#include <stdint.h>
++#if defined (__SVR4) && defined (__sun)
++# include <sys/int_types.h>
++#else
++# if defined (__OpenBSD__) || defined (__FreeBSD__)
++#  include <inttypes.h>
++# else 
++#  include <stdint.h>
++# endif
++#endif
+ 
+ /*
+  * 64-bit datatypes.  Two separate implementations, one using

+ 1 - 1
cairo/cairo.spec

@@ -33,7 +33,7 @@ Class:        EVAL
 Group:        XWindow
 License:      MIT-style
 Version:      0.4.0
-Release:      20050309
+Release:      20050330
 
 #   package options
 %option       with_pdf   yes