diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/common.h b/src/common.h index 170f97a..70e77b1 100644 --- a/src/common.h +++ b/src/common.h @@ -37,6 +37,7 @@ #include <inttypes.h> #include <locale.h> #include <math.h> +#include <signal.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -51,7 +52,6 @@ # define localtime_r(T, TM) localtime_s((TM), (T)) #else # include <pwd.h> -# include <signal.h> # include <time.h> #endif @@ -265,15 +265,10 @@ void pipeutils_signal(int write_fd); void pipeutils_handle_signal(int read_fd); -#ifdef WINDOWS -extern int exiting; -extern int disable; -#else extern volatile sig_atomic_t exiting; extern volatile sig_atomic_t disable; -#endif -int signals_install_handlers(void); +void signals_install_handlers(void); int systemtime_get_time(double *now); |