Patch for NTFS to compile on alpha

Stephen Williams (steve@icarus.icarus.com)
Mon, 09 Feb 1998 10:46:37 -0800


This patch allows NTFS support to compile on an alpha. I haven't tested
it yet, but I though I would throw it out there in case someone else has
a bit more spare time then I do.

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

*** linux-2.1.85/fs/ntfs/types.h.dist Mon Feb 9 10:45:40 1998 --- linux-2.1.85/fs/ntfs/types.h Mon Feb 9 10:42:11 1998 *************** typedef unsigned long long ntfs_time64_t *** 46,51 **** --- 46,88 ---- typedef unsigned int ntfs_cluster_t; #endif + #elif defined(__alpha__) + + /* unsigned integral types */ + #ifndef NTFS_INTEGRAL_TYPES + #define NTFS_INTEGRAL_TYPES + typedef unsigned char ntfs_u8; + typedef unsigned short ntfs_u16; + typedef unsigned int ntfs_u32; + typedef unsigned long ntfs_u64; + #endif + + /* unicode character type */ + #ifndef NTFS_WCHAR_T + #define NTFS_WCHAR_T + typedef unsigned short ntfs_wchar_t; + #endif + /* file offset */ + #ifndef NTFS_OFFSET_T + #define NTFS_OFFSET_T + typedef unsigned long ntfs_offset_t; + #endif + /* UTC */ + #ifndef NTFS_TIME64_T + #define NTFS_TIME64_T + typedef unsigned long ntfs_time64_t; + #endif + /* This is really unsigned long long. So we support only volumes up to 2 TB */ + #ifndef NTFS_CLUSTER_T + #define NTFS_CLUSTER_T + typedef unsigned int ntfs_cluster_t; + #endif + + #else + #error Put your machine description here + #endif + + /* Macros reading unsigned integers from a byte pointer */ /* these should work for all little endian machines */ #define NTFS_GETU8(p) (*(ntfs_u8*)(p)) *************** typedef unsigned int ntfs_cluster_t; *** 72,80 **** #define NTFS_PUTS24(p,v) NTFS_PUTU24(p,v) #define NTFS_PUTS32(p,v) NTFS_PUTU32(p,v) - #else - #error Put your machine description here - #endif /* architecture independent macros */ --- 109,114 ----

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu