aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-15 13:19:38 +0900
committernsfisis <nsfisis@gmail.com>2025-09-15 13:19:38 +0900
commit6994805cd5cbb17ae4ff5513ec776bb08eddec6c (patch)
tree32bb3b5ffdfe382f307f798360ce16df4166a85e /src
parentb0353acd8f50d62b81879b0469ca9245a13f90e7 (diff)
downloadducc-6994805cd5cbb17ae4ff5513ec776bb08eddec6c.tar.gz
ducc-6994805cd5cbb17ae4ff5513ec776bb08eddec6c.tar.zst
ducc-6994805cd5cbb17ae4ff5513ec776bb08eddec6c.zip
feat: include <libgen.h>
Diffstat (limited to 'src')
-rw-r--r--src/preprocess.c1
-rw-r--r--src/std.h4
-rw-r--r--src/sys.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/preprocess.c b/src/preprocess.c
index f3b4ea8..f9fbcb4 100644
--- a/src/preprocess.c
+++ b/src/preprocess.c
@@ -1,5 +1,6 @@
#include "preprocess.h"
#include <assert.h>
+#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/std.h b/src/std.h
index cf8eb98..bfa5f0a 100644
--- a/src/std.h
+++ b/src/std.h
@@ -6,8 +6,4 @@
// TODO: <stdlib.h>
int mkstemps(char*, int);
-#define PATH_MAX 4096
-
-char* dirname(char*);
-
#endif
diff --git a/src/sys.c b/src/sys.c
index 67a3c41..8d89524 100644
--- a/src/sys.c
+++ b/src/sys.c
@@ -1,4 +1,6 @@
#include "sys.h"
+#include <libgen.h>
+#include <linux/limits.h>
#include <stdlib.h>
#include "std.h"