diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3,6 +3,10 @@ | |||
3 | #include "tox_bootstrap.h" | 3 | #include "tox_bootstrap.h" |
4 | #include "log.h" | 4 | #include "log.h" |
5 | 5 | ||
6 | #ifdef __MACH__ | ||
7 | #include "mach.h" | ||
8 | #endif | ||
9 | |||
6 | static struct Tox_Options tox_options; | 10 | static struct Tox_Options tox_options; |
7 | Tox *tox; | 11 | Tox *tox; |
8 | int client_socket = 0; | 12 | int client_socket = 0; |
@@ -1108,7 +1112,7 @@ int main(int argc, char *argv[]) | |||
1108 | do_daemonize(); | 1112 | do_daemonize(); |
1109 | } | 1113 | } |
1110 | 1114 | ||
1111 | on_exit(cleanup, NULL); | 1115 | atexit(cleanup); |
1112 | 1116 | ||
1113 | print_version(); | 1117 | print_version(); |
1114 | 1118 | ||