aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sys.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-04 22:49:54 +0900
committernsfisis <nsfisis@gmail.com>2025-09-04 22:49:54 +0900
commite342992a135e68d10716d9da920cb3af62a7d750 (patch)
tree49a1a94a87204c672a9f57890ec9d9c23989e2f6 /src/sys.c
parent17809b0571a038ec9eba3fc3620ba77a38c98afd (diff)
downloadducc-e342992a135e68d10716d9da920cb3af62a7d750.tar.gz
ducc-e342992a135e68d10716d9da920cb3af62a7d750.tar.zst
ducc-e342992a135e68d10716d9da920cb3af62a7d750.zip
feat: use <stdio.h> in ducc sources
Diffstat (limited to 'src/sys.c')
-rw-r--r--src/sys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys.c b/src/sys.c
index 453c973..a4a531c 100644
--- a/src/sys.c
+++ b/src/sys.c
@@ -1,6 +1,10 @@
#include "sys.h"
#include "std.h"
+// TODO: #inclue some header.
+typedef long ssize_t;
+ssize_t readlink(const char*, char*, size_t);
+
static char* get_self_path() {
char* buf = calloc(PATH_MAX, sizeof(char));
ssize_t len = readlink("/proc/self/exe", buf, PATH_MAX - 1);