mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-05 14:31:49 +00:00
Fix building on Chimera Linux (and other similar operating systems)
zoitechat references kill, popen, pclose, gmtime_r, and localtime_r which are POSIX-only functions that need #define _POSIX_SOURCE to build with LLVM or musl C, one of the two.
This commit is contained in:
1 parent
84ffab7158
commit
f4f515d212
4 files changed
+38
-28
No files matched your search
+5
-1
@@ -21,6 +21,10 @@
|
||||
* Inferno Nettverk A/S, Norway. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef WIN32
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@@ -1804,7 +1808,7 @@ server_set_encoding (server *serv, char *new_encoding)
|
||||
if (new_encoding)
|
||||
{
|
||||
serv->encoding = g_strdup (new_encoding);
|
||||
/* the serverlist GUI might have added a space
|
||||
/* the serverlist GUI might have added a space
|
||||
and short description - remove it. */
|
||||
space = strchr (serv->encoding, ' ');
|
||||
if (space)
|
||||
|
||||
Reference in new issue
Block a user