From 65c39faa76cb7a711b21e1e54b9e0aa1410e997c Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Tue, 21 Oct 2025 13:42:46 -0500 Subject: Fix _GNU_SOURCE not being defined --- src/encryption.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/encryption.c') diff --git a/src/encryption.c b/src/encryption.c index aafb972..c3f77ce 100644 --- a/src/encryption.c +++ b/src/encryption.c @@ -14,12 +14,11 @@ // I need to make sure every single function in this file returns with an indicated error instead of nuking the whole program with // error() +#define _GNU_SOURCE 1 + #ifndef __VXGG_REWRITE___ENCRYPTION_C___1481879318188___ #define __VXGG_REWRITE___ENCRYPTION_C___1481879318188___ - -#define _GNU_SOURCE - #define TPSIZE (1<<13) #include "shared.c" @@ -29,14 +28,17 @@ #include #include +#include + #include #include -#include #include + +#include +#include + #include #include -#include -#include /// Determines whether any function that calls libsodium functions also checks to make sure libsodium is actually initialized. May /// cause unexpected issues with early exiting due to libsodium failing to initialize properly. It's recommended that you just @@ -626,7 +628,7 @@ ctqueue * cryptscan() { ctqueue *res = ctqueue_init(TPSIZE), *working = ctqueue_init(TPSIZE); if(!res || !working) ERRRET(errno, NULL); - task *start = task_init(__cscan_worker, free, void *data); + task *start = task_init(__cscan_worker, free, NULL); if(!start) ERRRET(errno, NULL); ctqueue_waitpush(working, start); -- cgit v1.2.3