Skip to content
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

[2019-06] Correctly check for HAVE_STAT_BIRTHTIME in configure.ac checks for System.Native #17019

Closed

Conversation

monojenkins
Copy link
Contributor

The AC_CHECK_MEMBER check was done incorrectly, the include files need to be separated by newlines otherwise we would get a false negative result.

config.log contained this:

conftest.c:279:23: warning: extra tokens at end of #include directive [-Wextra-tokens]
#include <sys/types.h>, #include <sys/stat.h>
                      ^
                      //

This means that when doing File.GetCreationTime() we'd fall back to returning the last modified time.

It regressed when we switched System.IO.File to the CoreFX implementation i.e. System.Native in 8f5cef9.

Fixes #16974

Backport of #16999.

/cc @akoeplinger

…stem.Native

The check was done incorrectly, the include files need to be separated by newlines otherwise we would get a false negative result.

config.log contained this:

```
conftest.c:279:23: warning: extra tokens at end of #include directive [-Wextra-tokens]
#include <sys/types.h>, #include <sys/stat.h>
                      ^
                      //
```

This means that when doing File.GetCreationTime() we'd fall back to returning the last modified time.

It regressed when we switched to System.IO.File to the CoreFX implementation i.e. System.Native in mono@8f5cef9.

Fixes mono#16974
@akoeplinger
Copy link
Member

Requested by @Aguilex: #16974 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants