]> wimlib.net Git - wimlib/blobdiff - src/ntfs-capture.c
Compile on FreeBSD
[wimlib] / src / ntfs-capture.c
index cd534a21cb507c8533a1f5e3d7c44d7011053a0a..9a8991ec0587e05cbe93a67989499d5be64293ce 100644 (file)
  * along with wimlib; if not, see http://www.gnu.org/licenses/.
  */
 
+
 #include "config.h"
+
+#ifdef WITH_NTFS_3G
+#include <ntfs-3g/endians.h>
+#include <ntfs-3g/types.h>
+#endif
+
 #include "wimlib_internal.h"
 
 
@@ -288,7 +295,8 @@ static int capture_ntfs_streams(struct dentry *dentry, ntfs_inode *ni,
                        lte = NULL;
                } else {
                        if (type == AT_REPARSE_POINT && data_size < 8) {
-                               ERROR("`%s': reparse point buffer too small");
+                               ERROR("`%s': reparse point buffer too small",
+                                     path);
                                ret = WIMLIB_ERR_NTFS_3G;
                                goto out_put_actx;
                        }
@@ -566,11 +574,13 @@ static int build_dentry_tree_ntfs_recursive(struct dentry **root_p,
                        if (ret != 0)
                                return ret;
                } else {
+               #ifdef ENODATA
                        if (errno != ENODATA) {
                                ERROR_WITH_ERRNO("Error getting DOS name "
                                                 "of `%s'", path);
                                return WIMLIB_ERR_NTFS_3G;
                        }
+               #endif
                }
        }