mirror of
https://github.com/Tha14/toxic.git
synced 2025-01-31 10:57:22 +01:00
Thierry Thomas
e17fa89d8f
Update misc_tools.c (#408)
* Update misc_tools.c Fix build on FreeBSD with clang. Without this patch, compilation fails with these messages: CC misc_tools.o /usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:479:24: error: variable has incomplete type 'struct sockaddr_in' struct sockaddr_in s_addr; ^ /usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:479:12: note: forward declaration of 'struct sockaddr_in' struct sockaddr_in s_addr; ^ /usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:480:22: error: use of undeclared identifier 'AF_INET' return inet_pton(AF_INET, address, &(s_addr.sin_addr)) != 0; ^ 2 errors generated. * Fix build on FreeBSD with clang Without this patch, compilation fails with these messages: CC misc_tools.o /usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:479:24: error: variable has incomplete type 'struct sockaddr_in' struct sockaddr_in s_addr; ^ /usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:479:12: note: forward declaration of 'struct sockaddr_in' struct sockaddr_in s_addr; ^ /usr/ports/net-im/toxic/work/toxic-0.7.1/src/misc_tools.c:480:22: error: use of undeclared identifier 'AF_INET' return inet_pton(AF_INET, address, &(s_addr.sin_addr)) != 0; ^ 2 errors generated.
Toxic is a Tox-based instant messenging client which formerly resided in the Tox core repository, and is now available as a standalone application.
Installation
Use our repositories
Compile it yourself
Settings
Running Toxic for the first time creates an empty file called toxic.conf in your home configuration directory ("~/.config/tox" for Linux users). Adding options to this file allows you to enable auto-logging, change the time format (12/24 hour), and much more. You can view our example config file here.
Troubleshooting
If your default prefix is "/usr/local" and you receive the following:
error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory
you can attempt to correct it by running sudo ldconfig
. If that doesn't work, run:
echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
sudo ldconfig
Description
Languages
C
95.5%
Makefile
1.8%
Objective-C
1%
Shell
1%
Python
0.6%
Other
0.1%