summaryrefslogtreecommitdiff
path: root/x11/xmx/patches/patch-ed
blob: ab41ff012529e868cd5f1cdc00dfd4e71e9ede8e (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
$NetBSD: patch-ed,v 1.2 2011/07/03 20:16:00 dholland Exp $

- use modern C

--- clients/xmtg/ui.c.orig	1998-04-01 18:55:00.000000000 -0500
+++ clients/xmtg/ui.c	2008-08-31 02:40:34.000000000 -0400
@@ -22,10 +22,14 @@
  */
 /* next line is debugging...TODO */
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #ifdef __STDC__
+#include <stdint.h>
 #include <stdarg.h>
 #else
 #include <varargs.h>
+typedef long intptr_t; /* best guess... */
 #endif
 #include <X11/Xlib.h>
 
@@ -440,7 +444,7 @@ ui_get_add_info(adp, strp, modep)
 {
    
    XtVaGetValues(adp->input, XtNstring, strp, 0);
-   *modep = (int)XawToggleGetCurrent(adp->mode_radio);
+   *modep = (int)(intptr_t)XawToggleGetCurrent(adp->mode_radio);
 }
 
 void