Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Add support for building under glibc 2.26 #13785

Merged
merged 1 commit into from
Sep 5, 2017
Merged

Add support for building under glibc 2.26 #13785

merged 1 commit into from
Sep 5, 2017

Conversation

omajid
Copy link
Member

@omajid omajid commented Sep 5, 2017

glibc 2.26 renames a number of identifiers so they are reserved under POSIX. Specifically, padding becomes __glibc_reserved1. Add a configure test for it and use the appropriate field name.

See https://sourceware.org/bugzilla/show_bug.cgi?id=21457 for more information.

Resolves #13009

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after fixing the nit.

@@ -21,6 +21,8 @@ Module Name:
#ifndef _PAL_CONTEXT_H_
#define _PAL_CONTEXT_H_

#include "config.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nit - this is not needed. The config.h is included in palinternal.h that needs to be always included before this header. We already use a couple of HAVE_xxxx macros in this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Fixed now.

glibc 2.26 renames a number of identifiers so they are reserved under
POSIX. Specifically, `padding` becomes `__glibc_reserved1`. Add a
configure test for it and use the appropriate field name.

See https://sourceware.org/bugzilla/show_bug.cgi?id=21457 for more
information.

Resolves #13009
Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@dagood
Copy link
Member

dagood commented Sep 5, 2017

@dotnet-bot test OSX10.12 x64 Checked Build and Test

Failure was regexdna which is known flaky.

@janvorli janvorli merged commit a8f83b6 into dotnet:master Sep 5, 2017
@omajid
Copy link
Member Author

omajid commented Sep 6, 2017

Thanks for the review and merging this!

@omajid omajid deleted the glibc-2.26 branch September 6, 2017 15:50
ljrk0 pushed a commit to ljrk0/coreclr that referenced this pull request Oct 18, 2017
glibc 2.26 renames a number of identifiers so they are reserved under
POSIX. Specifically, `padding` becomes `__glibc_reserved1`. Add a
configure test for it and use the appropriate field name.

See https://sourceware.org/bugzilla/show_bug.cgi?id=21457 for more
information.

Resolves #13009
mchataigner pushed a commit to mchataigner/coreclr that referenced this pull request Oct 25, 2017
glibc 2.26 renames a number of identifiers so they are reserved under
POSIX. Specifically, `padding` becomes `__glibc_reserved1`. Add a
configure test for it and use the appropriate field name.

See https://sourceware.org/bugzilla/show_bug.cgi?id=21457 for more
information.

Resolves #13009
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants