patches/libvisual-01-lv_types.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 827 e4a125081ce8
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

--- libvisual-0.4.0/libvisual/lv_types.h.orig	2008-01-24 19:26:48.018164314 +0530
+++ libvisual-0.4.0/libvisual/lv_types.h	2008-01-24 19:28:17.592878189 +0530
@@ -30,6 +30,11 @@
 #include <stdint.h>
 #else
 #include <sys/types.h>
+
+#if defined(__sun__) || defined(__sun)
+#include <inttypes.h>
+#endif
+
 #endif /* !VISUAL_OS_WIN32 */
 
 VISUAL_BEGIN_DECLS
@@ -38,7 +43,7 @@
 
 #define VISUAL_TABLESIZE(table)			(sizeof (table) / sizeof (table[0]))
 
-#if !defined(VISUAL_OS_WIN32)
+#if !defined(VISUAL_OS_WIN32) && !defined(__sun__) && !defined(__sun)
 #ifndef uint8_t
 #define uint8_t		u_int8_t
 #endif
@@ -50,7 +55,7 @@
 #ifndef uint32_t
 #define uint32_t	u_int32_t
 #endif
-#endif /* !VISUAL_OS_WIN32 */
+#endif /* !VISUAL_OS_WIN32 && !__sun__ && !__sun */
 
 VISUAL_END_DECLS