-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Cygwin build #106
Draft
CodingKoopa
wants to merge
18
commits into
tuxera:edge
Choose a base branch
from
CodingKoopa:windows
base: edge
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Fix Cygwin build #106
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ba086d6
guard syslog.h
WinterMute fcd27dd
remove bogus __timespec_defined
WinterMute 13d3413
win32_io.c: rm GUID type definition
CodingKoopa 9038bb8
win32_io.c: use different BOOL workaround
CodingKoopa 22dac96
win32_io.c: undefine all enum constants
CodingKoopa 7d1c1ad
win32_io.c: make NTSTATUS signed
CodingKoopa ecfe5e1
win32_io.c: use stat on Cygwin
CodingKoopa 64f3464
device_io.h: forward declare ntfs_device struct.
CodingKoopa 6261aa3
win32_io.c: switch to _get_osfhandle from get_osfhandle
CodingKoopa d43ede9
libntfs-3g: link to ntdll.dll on Windows
CodingKoopa f196023
utils.h: remove compat macros
CodingKoopa 9e0b9ec
ntfsprogs: provide WINAPI definition
CodingKoopa 69c2377
ntfsusermap.c: provide mode with mkdir
CodingKoopa e2f2bfb
ntfsclone.c: use setmode from header
CodingKoopa 11543cd
readme: add windows instructions
CodingKoopa 1a3def3
win32_io.c: fix variable name
CodingKoopa 0038d94
win32_io.c: fix variable name + comment
CodingKoopa 00e2074
fixup! ntfsusermap.c: provide mode with mkdir
CodingKoopa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to just skip this
enum
when any constant is already defined (instead of doing this bunch ofundef
's)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it may not be safe to do this. The first compiler error occurs with
STATUS_INVALID_HANDLE
(as opposed toSTATUS_SUCCESS
orSTATUS_BUFFER_OVERFLOW
), which suggests to me that the included header is not ntstatus.h, but rather winnt.h. The later is a rather incomplete group of status codes, missingSTATUS_BUFFER_OVERFLOW
, so it can't be used as-is.What I can do, however, is include
ntstatus.h
, which does provide a comprehensive set of status codes. The remaining questions, then, are:STATUS_SUCCESS
is defined?I'm not aware of any non-Cygwin Windows setups that are supposed to be working, but I could take the conservative route and do it conditionally, if preferred.