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:
Gourd committed 2026-12-04 22:16:32 -05:00
1 parent 84ffab7158
commit f4f515d212
4 files changed
+10

No files matched your search

+1
View File
@@ -14,6 +14,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define _POSIX_C_SOURCE 200809L
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
+1
View File
@@ -18,6 +18,7 @@
/* IRC RFC1459(+commonly used extensions) protocol implementation */ /* IRC RFC1459(+commonly used extensions) protocol implementation */
#define _POSIX_C_SOURCE 200809L
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
+4
View File
@@ -21,6 +21,10 @@
* Inferno Nettverk A/S, Norway. All rights reserved. * Inferno Nettverk A/S, Norway. All rights reserved.
*/ */
#ifndef WIN32
#define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
+4
View File
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef WIN32
#define _POSIX_C_SOURCE 200809L
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>