diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-15 13:19:38 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-15 13:19:38 +0900 |
| commit | 6994805cd5cbb17ae4ff5513ec776bb08eddec6c (patch) | |
| tree | 32bb3b5ffdfe382f307f798360ce16df4166a85e | |
| parent | b0353acd8f50d62b81879b0469ca9245a13f90e7 (diff) | |
| download | ducc-6994805cd5cbb17ae4ff5513ec776bb08eddec6c.tar.gz ducc-6994805cd5cbb17ae4ff5513ec776bb08eddec6c.tar.zst ducc-6994805cd5cbb17ae4ff5513ec776bb08eddec6c.zip | |
feat: include <libgen.h>
| -rw-r--r-- | src/preprocess.c | 1 | ||||
| -rw-r--r-- | src/std.h | 4 | ||||
| -rw-r--r-- | src/sys.c | 2 |
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> @@ -6,8 +6,4 @@ // TODO: <stdlib.h> int mkstemps(char*, int); -#define PATH_MAX 4096 - -char* dirname(char*); - #endif @@ -1,4 +1,6 @@ #include "sys.h" +#include <libgen.h> +#include <linux/limits.h> #include <stdlib.h> #include "std.h" |
