Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • wayland wayland
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 143
    • Issues 143
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 53
    • Merge requests 53
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • waylandwayland
  • waylandwayland
  • Merge requests
  • !63

build: Fix strndup detection on MinGW

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Joshua Watt requested to merge jpewhacker/wayland:mingw-fixes into main Feb 20, 2020
  • Overview 5
  • Commits 1
  • Pipelines 1
  • Changes 1

GCC and meson conspire together to incorrectly detect that strndup() exists on MinGW as __builtin_strndup, when no such function exists. As a work around, meson will skip looking for __builtin functions if an '#include' is in the prefix, so add '#include <string.h>' when looking for strndup().

See: https://github.com/mesonbuild/meson/issues/3672

Signed-off-by: Joshua Watt JPEWhacker@gmail.com

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: mingw-fixes