diff options
Diffstat (limited to 'src/sys.c')
| -rw-r--r-- | src/sys.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |
