mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-07 00:37:10 +00:00
Integer variables referenced from a signal handler (XLocked, XNeedSignal) should be type sig_atomic_t
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "version.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
@@ -62,7 +63,8 @@ unsigned LispDisplayRequestedWidth, LispDisplayRequestedHeight;
|
||||
|
||||
Colormap Colors;
|
||||
|
||||
int XLocked = 0; /* non-zero while doing X ops, to avoid signals */
|
||||
volatile sig_atomic_t XLocked = 0; /* non-zero while doing X ops, to avoid signals */
|
||||
volatile sig_atomic_t XNeedSignal = 0; /* T if an X interrupt happened while XLOCK asserted */
|
||||
extern fd_set LispReadFds;
|
||||
|
||||
/************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user