diff --git a/commands/loadenv.c b/commands/loadenv.c index 8d6be2f..44e96c3 100644 --- a/commands/loadenv.c +++ b/commands/loadenv.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include diff --git a/commands/rm.c b/commands/rm.c index 5f1f582..4eebb3d 100644 --- a/commands/rm.c +++ b/commands/rm.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include diff --git a/include/fs.h b/include/fs.h index 21490db..7081227 100644 --- a/include/fs.h +++ b/include/fs.h @@ -179,8 +179,6 @@ int automount_add(const char *path, const char *cmd); void automount_print(void); -int unlink_recursive(const char *path, char **failedpath); - int fsdev_open_cdev(struct fs_device_d *fsdev); const char *cdev_get_mount_path(struct cdev *cdev); const char *cdev_mount_default(struct cdev *cdev, const char *fsoptions); diff --git a/include/libfile.h b/include/libfile.h index 3f81718..de4f42d 100644 --- a/include/libfile.h +++ b/include/libfile.h @@ -24,4 +24,6 @@ /* Create a directory and its parents */ int make_directory(const char *pathname); +int unlink_recursive(const char *path, char **failedpath); + #endif /* __LIBFILE_H */ diff --git a/lib/unlink-recursive.c b/lib/unlink-recursive.c index 78dc015..434fdc7 100644 --- a/lib/unlink-recursive.c +++ b/lib/unlink-recursive.c @@ -1,4 +1,5 @@ #include +#include #include #include #include