Skip to content

Commit

Permalink
Add missing check for sys/wait.h in meson build
Browse files Browse the repository at this point in the history
  • Loading branch information
franko committed Jan 2, 2023
1 parent d10e424 commit 694c776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.h.meson
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#mesondefine HAVE_STRING_H
#mesondefine HAVE_SYS_STAT_H
#mesondefine HAVE_SYS_TYPES_H
#mesondefine HAVE_SYS_WAIT_H
#mesondefine HAVE_UNISTD_H
#mesondefine HAVE_TM_GMTOFF
#mesondefine HAVE_TIMEZONE
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ compiler = meson.get_compiler('c')
conf = configuration_data()
conf.set('version', meson.project_version())

check_headers = ['dlfcn.h', 'inttypes.h', 'stdint.h', 'stdlib.h', 'string.h', 'sys/stat.h', 'sys/types.h', 'unistd.h']
check_headers = ['dlfcn.h', 'inttypes.h', 'stdint.h', 'stdlib.h', 'string.h', 'sys/stat.h', 'sys/types.h', 'sys/wait.h', 'unistd.h']
foreach header_name : check_headers
if compiler.has_header(header_name)
conf.set('HAVE_' + header_name.underscorify().to_upper(), 1)
Expand Down

0 comments on commit 694c776

Please sign in to comment.