summaryrefslogtreecommitdiff
path: root/x11/xmx/patches/patch-bi
blob: 125ee295bf8effa4ff7f43c66aa08c58f869fb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$NetBSD: patch-bi,v 1.2 2011/07/03 20:15:59 dholland Exp $

- use modern C

--- server/xmx.h~	1998-05-05 14:54:52.000000000 -0400
+++ server/xmx.h	2008-08-31 00:38:36.000000000 -0400
@@ -25,6 +25,9 @@
 *   xmx.h								*
 *									*
 ************************************************************************/
+
+#include <stdint.h>
+
 /*
 **	Rationalize Predefines
 */
@@ -665,15 +668,15 @@
 ************************************************************************/
 typedef unsigned long	ulong_t;	/* an unsigned long */
 typedef unsigned int	uint_t;		/* an unsigned word */
-typedef unsigned long	u32_t;		/* a 32 bit unsigned int */
-typedef unsigned short	u16_t;		/* a 16 bit unsigned int */
-typedef unsigned char	u8_t;		/* an 8 bit unsigned int */
+typedef uint32_t	u32_t;		/* a 32 bit unsigned int */
+typedef uint16_t	u16_t;		/* a 16 bit unsigned int */
+typedef uint8_t		u8_t;		/* an 8 bit unsigned int */
 
-typedef int		slong_t;	/* signed long */
+typedef long		slong_t;	/* signed long */
 typedef int		sint_t;		/* signed word */
-typedef long		s32_t;		/* a 32 bit signed int */
-typedef short		s16_t;		/* a 16 bit signed int */
-typedef char		s8_t;		/* an 8 bit signed int */
+typedef int32_t		s32_t;		/* a 32 bit signed int */
+typedef int16_t		s16_t;		/* a 16 bit signed int */
+typedef int8_t		s8_t;		/* an 8 bit signed int */
 
 typedef u8_t		kcode_t;