diff --git a/meson.build b/meson.build index 4ae18c0fb9..15bc918e5b 100644 --- a/meson.build +++ b/meson.build @@ -31,7 +31,7 @@ endif if cxx.has_function('poll', prefix: '#include ') # Use poll if present add_project_arguments('-DCPPHTTPLIB_USE_POLL', language: 'cpp') -else if cxx.has_function('select', prefix: '#include ') +elif cxx.has_function('select', prefix: '#include ') # Use select otherwise add_project_arguments('-DCPPHTTPLIB_USE_SELECT', language: 'cpp') endif