aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sys.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-15 13:34:07 +0900
committernsfisis <nsfisis@gmail.com>2025-09-15 13:34:07 +0900
commitedb1612b9f5d5485528e24470b88a7d602772ad6 (patch)
tree2bca7625a11bb59a2abb860e8b73fc43f6e1987b /src/sys.c
parent6994805cd5cbb17ae4ff5513ec776bb08eddec6c (diff)
downloadducc-edb1612b9f5d5485528e24470b88a7d602772ad6.tar.gz
ducc-edb1612b9f5d5485528e24470b88a7d602772ad6.tar.zst
ducc-edb1612b9f5d5485528e24470b88a7d602772ad6.zip
refactor: remove src/std.h
Diffstat (limited to 'src/sys.c')
-rw-r--r--src/sys.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sys.c b/src/sys.c
index 8d89524..ba946a1 100644
--- a/src/sys.c
+++ b/src/sys.c
@@ -2,13 +2,7 @@
#include <libgen.h>
#include <linux/limits.h>
#include <stdlib.h>
-#include "std.h"
-
-// TODO: #inclue some header.
-#ifndef __ducc__
-typedef long ssize_t;
-#endif
-ssize_t readlink(const char*, char*, size_t);
+#include <unistd.h>
static char* get_self_path() {
char* buf = calloc(PATH_MAX, sizeof(char));