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
|
$NetBSD: patch-ad,v 1.5 2003/10/18 13:20:32 cjep Exp $
--- main.cc.orig 1996-07-23 06:12:22.000000000 +1000
+++ main.cc 2003-10-08 23:12:31.000000000 +1000
@@ -177,7 +177,7 @@
else {
Tk_Window tk = t.tkmain();
Tk_Uid uid = Tk_GetUid((char*)argv[1]);
- XFontStruct* p = Tk_GetFontStruct(t.interp(), tk, uid);
+ Tk_Font p = Tk_GetFont(t.interp(), tk, uid);
t.result(p != 0 ? "1" : "0");
}
return (TCL_OK);
@@ -421,10 +421,13 @@
srandom(heuristic_random());
#ifdef SIGHUP
- signal(SIGHUP, ciao);
+ signal(SIGHUP, (void (*)(int))ciao);
+#endif
+ signal(SIGINT, (void (*)(int))ciao);
+ signal(SIGTERM, (void (*)(int))ciao);
+#ifdef __FreeBSD__
+ signal(SIGSYS, (sig_t)noXShm);
#endif
- signal(SIGINT, ciao);
- signal(SIGTERM, ciao);
#ifdef WIN32
TkSetPlatformInit(TkPlatformInit);
|