aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorame <[email protected]>2025-07-28 20:45:37 -0500
committerame <[email protected]>2025-07-28 20:45:37 -0500
commit2df184d11bed4482a9454e811ab937e67ded2760 (patch)
treedd032c1e850edf20bb443f0e97bfe0570fd2dddf /src
parented2dd6874a905769c5cfc080333ab0b12f9a9fe8 (diff)
define _gnu_source, fixes long address returns from memmem
Diffstat (limited to 'src')
-rw-r--r--src/net/common.h1
-rw-r--r--src/table.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/net/common.h b/src/net/common.h
index fbafb58..947eee7 100644
--- a/src/net/common.h
+++ b/src/net/common.h
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
+#define _GNU_SOURCE
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
diff --git a/src/table.c b/src/table.c
index 418da3a..9caca0b 100644
--- a/src/table.c
+++ b/src/table.c
@@ -1,5 +1,6 @@
#include "table.h"
#include <stdlib.h>
+#define _GNU_SOURCE
#include <string.h>
#include <stdint.h>