Skip to content

Remove the sys/sysmacros.h include from sys/types.h? #8813

Closed

Description

@benjwright

Hello,
Would it be possible to remove the sys/sysmacros.h include from sys/types.h?

This change was added in 2011 - https://git.musl-libc.org/cgit/musl/commit/include/sys/types.h?id=f552c792c7ce5a560f214e1104d93ee5b0833967

However it appears to have been removed from other standard libc implementations around ~2015 based on this announcement:
https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html

This can cause issues with user defined symbol collision of the symbols major, minor or makedev.

Upstream musl has accepted to remove this: https://www.openwall.com/lists/musl/2019/06/14/5

But I wanted to file an issue here to track its integration into emscripten. Either by pulling the new musl library or simply removing the include manually.

Activity

  1. added a commit that references this issue on Jun 18, 2019
    b8896d1
  2. added a commit that references this issue on Dec 23, 2020
    8af7198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions