summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/directory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c
index fe3ccda70..0e6caeb52 100644
--- a/mdk-stage1/directory.c
+++ b/mdk-stage1/directory.c
@@ -24,6 +24,7 @@
#include <sys/mount.h>
#include <sys/stat.h>
#include <string.h>
+#include <libgen.h>
#include "stage1.h"
#include "frontend.h"
#include "log.h"