aboutsummaryrefslogtreecommitdiffstats
path: root/src/macfns.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-04-29 09:00:22 +0000
committerYAMAMOTO Mitsuharu2005-04-29 09:00:22 +0000
commit4f19cb1521ff3c2c50820d91c00dea6d2af48954 (patch)
tree843c05b7832f333efdf793ae7669924d1de0fa7b /src/macfns.c
parent4df24d3be61d9956b7fe7f725bfc7132d73ca093 (diff)
downloademacs-4f19cb1521ff3c2c50820d91c00dea6d2af48954.tar.gz
emacs-4f19cb1521ff3c2c50820d91c00dea6d2af48954.zip
(Fx_server_version): Add BLOCK_INPUT around Gestalt.
Diffstat (limited to 'src/macfns.c')
-rw-r--r--src/macfns.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/macfns.c b/src/macfns.c
index b85c4f01795..a8b685582d5 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -2969,8 +2969,13 @@ If omitted or nil, that stands for the selected frame's display. */)
2969{ 2969{
2970 int mac_major_version; 2970 int mac_major_version;
2971 SInt32 response; 2971 SInt32 response;
2972 OSErr err;
2972 2973
2973 if (Gestalt (gestaltSystemVersion, &response) != noErr) 2974 BLOCK_INPUT;
2975 err = Gestalt (gestaltSystemVersion, &response);
2976 UNBLOCK_INPUT;
2977
2978 if (err != noErr)
2974 error ("Cannot get Mac OS version"); 2979 error ("Cannot get Mac OS version");
2975 2980
2976 mac_major_version = (response >> 8) & 0xff; 2981 mac_major_version = (response >> 8) & 0xff;