X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Funix_capture.c;h=eb3005d41f504af88d5355faafd6f48b85cc5fc6;hb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518;hp=9a28d55a9a2fc6f552e3cafd91f626a3e9db7bd8;hpb=ac6edfd02c612da68a1b9a1b32ae64c95a87fbb1;p=wimlib diff --git a/src/unix_capture.c b/src/unix_capture.c index 9a28d55a..eb3005d4 100644 --- a/src/unix_capture.c +++ b/src/unix_capture.c @@ -3,7 +3,7 @@ */ /* - * Copyright (C) 2013 Eric Biggers + * Copyright (C) 2012, 2013 Eric Biggers * * This file is part of wimlib, a library for working with WIM files. * @@ -23,15 +23,23 @@ #ifndef __WIN32__ -#include "wimlib_internal.h" -#include "dentry.h" -#include "lookup_table.h" -#include "timestamp.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include #include -#include +#include #include +#include + +#include "wimlib/capture.h" +#include "wimlib/dentry.h" +#include "wimlib/error.h" +#include "wimlib/lookup_table.h" +#include "wimlib/paths.h" +#include "wimlib/reparse.h" +#include "wimlib/timestamp.h" static int unix_capture_regular_file(const char *path, @@ -242,7 +250,7 @@ unix_build_dentry_tree_recursive(struct wim_dentry **root_ret, goto out; } - ret = inode_table_new_dentry(params->inode_table, + ret = inode_table_new_dentry(¶ms->inode_table, path_basename_with_len(path, path_len), stbuf.st_ino, stbuf.st_dev, false, &root); if (ret)