aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys.c')
-rw-r--r--src/sys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys.c b/src/sys.c
index aa7b13d..5c9a4ea 100644
--- a/src/sys.c
+++ b/src/sys.c
@@ -1,3 +1,6 @@
+#include "sys.h"
+#include "std.h"
+
char* get_self_path() {
char* buf = calloc(PATH_MAX, sizeof(char));
ssize_t len = readlink("/proc/self/exe", buf, PATH_MAX - 1);