summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index 129e97c..72d18f4 100644
--- a/main.c
+++ b/main.c
@@ -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
6static struct Tox_Options tox_options; 10static struct Tox_Options tox_options;
7Tox *tox; 11Tox *tox;
8int client_socket = 0; 12int 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