Skip to content

On process 1.6.27.0, sys/wait.h is included unconditionally which breaks builds on wasm32-wasi #357

@wz1000

Description

@wz1000

Commit 5c98f59 moved the #if defined(HAVE_FORK) guard in cbits/posix/runProcess.c but left
#include <sys/wait.h> outside the guard.

On wasm32-wasi, sys/wait.h does not exist and HAVE_FORK is not defined, causing a build failure.

This was found on the x86_64-linux-alpine3_23-wasm-cross_wasm32-wasi-release GHC CI job.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions