Skip to content

Commit

Permalink
meson: define SETPGRP_VOID
Browse files Browse the repository at this point in the history
All current systems have a setpgrp whose signature conforms to Posix.

We need to set this to use the correct implementation internally
but we don't need to check for it.

Signed-off-by: Matt Jolly <kangie@gentoo.org>
  • Loading branch information
Kangie committed Oct 29, 2024
1 parent 82cea1e commit 86f3158
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ foreach f, v : functions
endif
endforeach

# SETPGRP_VOID is obsolete
# All current systems have a setpgrp whose signature conforms to Posix.
# We need to set this to use the correct implementation internally
# but we don't need to check for it.
if conf.has('HAVE_SETPGRP')
conf.set('SETPGRP_VOID', 1)
endif

# Dependencies.
all_found_deps = []

Expand Down

0 comments on commit 86f3158

Please sign in to comment.