diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-06 16:57:49 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-06 16:57:49 +0100 |
commit | 4c3cd7fde636946bb806d9b2d025c59418fa4e85 (patch) | |
tree | 5fccfab94b4ee535c4627be80a9ea92e5ae291b2 /src/common.h | |
parent | Style (diff) | |
download | redshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.gz redshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.bz2 redshift-ng-4c3cd7fde636946bb806d9b2d025c59418fa4e85.tar.xz |
style and some minor fixes
Signed-off-by: Mattias Andrée <m@maandree.se>
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); |