Skip to content

Commit b641cd9

Browse files
Revert "build(meson): automatically use poll or select as needed (yhirose#2067)"
This reverts commit 2b5d1ee.
1 parent de43d59 commit b641cd9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

meson.build

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,17 @@ project(
1616
meson_version: '>=0.62.0'
1717
)
1818

19-
cxx = meson.get_compiler('cpp')
20-
2119
# Check just in case downstream decides to edit the source
2220
# and add a project version
2321
version = meson.project_version()
2422
if version == 'undefined'
23+
cxx = meson.get_compiler('cpp')
2524
version = cxx.get_define('CPPHTTPLIB_VERSION',
2625
prefix: '#include <httplib.h>',
2726
include_directories: include_directories('.')).strip('"')
2827
assert(version != '', 'failed to get version from httplib.h')
2928
endif
3029

31-
if cxx.has_function('poll', prefix: '#include <poll.h>')
32-
# Use poll if present
33-
add_project_arguments('-DCPPHTTPLIB_USE_POLL', language: 'cpp')
34-
else if cxx.has_function('select', prefix: '#include <sys/select.h>')
35-
# Use select otherwise
36-
add_project_arguments('-DCPPHTTPLIB_USE_SELECT', language: 'cpp')
37-
endif
38-
3930
deps = [dependency('threads')]
4031
args = []
4132

0 commit comments

Comments
 (0)