summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGDR! <gdr@gdr.name>2015-09-17 10:30:10 +0200
committerGDR! <gdr@gdr.name>2015-09-17 10:30:10 +0200
commitba90921d46f3bfffbb87f4b271ba0276b113dc2f (patch)
tree697d87f921bc0fddd54ee3a27b3cb65c13e302cb /main.c
parent83790e5faf3de5ddb447e29ebe3490bdc30b1624 (diff)
parent199787953243d91449ac5f4a5ac16edc2497e438 (diff)
Merge pull request #15 from nCore/mac
Possibility to compile on Mac OS platform
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