]> wimlib.net Git - wimlib/blobdiff - src/ntfs-capture.c
Compile on FreeBSD
[wimlib] / src / ntfs-capture.c
index 2c478b104bef1be1960216e4cb059f3e0e437ed7..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"
 
 
@@ -567,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
                }
        }