diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2016-10-19 16:48:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 16:48:01 -0400 |
commit | 639432fcfa3884c1e2169911c581120b7a7981f8 (patch) | |
tree | 97d935c202c5ce1d6adf7259b8f8b4e2652a5749 | |
parent | Merge pull request #320 from Nepochal/typo (diff) | |
parent | Fix Windows build after e0a617fcada616a8112f7d9df51ac10bd58130af (diff) | |
download | redshift-ng-639432fcfa3884c1e2169911c581120b7a7981f8.tar.gz redshift-ng-639432fcfa3884c1e2169911c581120b7a7981f8.tar.bz2 redshift-ng-639432fcfa3884c1e2169911c581120b7a7981f8.tar.xz |
Merge pull request #295 from arnej/windowsfix
Fix Windows build after e0a617fcada616a8112f7d9df51ac10bd58130af
-rw-r--r-- | src/signals.c | 5 | ||||
-rw-r--r-- | src/signals.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/signals.c b/src/signals.c index 3dac82c..cee5ece 100644 --- a/src/signals.c +++ b/src/signals.c @@ -50,6 +50,11 @@ sigdisable(int signo) disable = 1; } +#else /* ! HAVE_SIGNAL_H || __WIN32__ */ + +int disable = 0; +int exiting = 0; + #endif /* ! HAVE_SIGNAL_H || __WIN32__ */ diff --git a/src/signals.h b/src/signals.h index 36cdaf1..7a1d22e 100644 --- a/src/signals.h +++ b/src/signals.h @@ -27,8 +27,8 @@ extern volatile sig_atomic_t exiting; extern volatile sig_atomic_t disable; #else /* ! HAVE_SIGNAL_H || __WIN32__ */ -# define exiting 0 -# define disable 0 +extern int exiting; +extern int disable; #endif /* ! HAVE_SIGNAL_H || __WIN32__ */ |