file ntfsmount.h contains TWO defines!
I moved this to ntfs.h file and remove ntfsmount.h for optinize headers.
Amd64 build is ok.
Index: ntfs/ntfs.h
===================================================================
RCS file: /cvs/src/sys/ntfs/ntfs.h,v
retrieving revision 1.17
diff -u -p -u -p -r1.17 ntfs.h
--- ntfs/ntfs.h 24 Nov 2013 16:02:30 -0000 1.17
+++ ntfs/ntfs.h 29 Jul 2017 19:16:15 -0000
@@ -299,6 +299,10 @@ struct ntfsmount {
#define ntfs_btocnoff(off) (off_t)((off) % ((ntmp)->ntm_spc *
(ntmp)->ntm_bps))
#define ntfs_bntob(bn) (int32_t)((bn) * (ntmp)->ntm_bps)
+/* mount flags */
+#define NTFS_MFLAG_CASEINS 0x00000001
+#define NTFS_MFLAG_ALLNAMES 0x00000002
+
#ifdef _KERNEL
#if defined(NTFS_DEBUG)
extern int ntfs_debug;
Index: ntfs/ntfs_subr.c
===================================================================
RCS file: /cvs/src/sys/ntfs/ntfs_subr.c,v
retrieving revision 1.50
diff -u -p -u -p -r1.50 ntfs_subr.c
--- ntfs/ntfs_subr.c 11 Apr 2017 14:43:49 -0000 1.50
+++ ntfs/ntfs_subr.c 29 Jul 2017 19:16:16 -0000
@@ -43,7 +43,6 @@
/* #define NTFS_DEBUG 1 */
#include <ntfs/ntfs.h>
-#include <ntfs/ntfsmount.h>
#include <ntfs/ntfs_inode.h>
#include <ntfs/ntfs_vfsops.h>
#include <ntfs/ntfs_subr.h>
Index: ntfs/ntfsmount.h
===================================================================
RCS file: ntfs/ntfsmount.h
diff -N ntfs/ntfsmount.h
--- ntfs/ntfsmount.h 29 May 2006 20:40:58 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,33 +0,0 @@
-/* $OpenBSD: ntfsmount.h,v 1.3 2006/05/29 20:40:58 miod Exp $ */
-/* $NetBSD: ntfsmount.h,v 1.1 2002/12/23 17:38:34 jdolecek Exp $ */
-
-/*-
- * Copyright (c) 1998, 1999 Semen Ustimenko
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * Id: ntfsmount.h,v 1.4 1999/05/12 09:43:09 semenu Exp
- */
-
-#define NTFS_MFLAG_CASEINS 0x00000001
-#define NTFS_MFLAG_ALLNAMES 0x00000002