aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2016-10-19 16:48:01 -0400
committerGitHub <noreply@github.com>2016-10-19 16:48:01 -0400
commit639432fcfa3884c1e2169911c581120b7a7981f8 (patch)
tree97d935c202c5ce1d6adf7259b8f8b4e2652a5749
parentMerge pull request #320 from Nepochal/typo (diff)
parentFix Windows build after e0a617fcada616a8112f7d9df51ac10bd58130af (diff)
downloadredshift-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.c5
-rw-r--r--src/signals.h4
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__ */