diff options
author | GDR! <gdr@gdr.name> | 2015-09-17 10:30:10 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2015-09-17 10:30:10 +0200 |
commit | ba90921d46f3bfffbb87f4b271ba0276b113dc2f (patch) | |
tree | 697d87f921bc0fddd54ee3a27b3cb65c13e302cb /main.c | |
parent | 83790e5faf3de5ddb447e29ebe3490bdc30b1624 (diff) | |
parent | 199787953243d91449ac5f4a5ac16edc2497e438 (diff) |
Merge pull request #15 from nCore/mac
Possibility to compile on Mac OS platform
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 | ||