diff --git a/meson.build b/meson.build index dabfc1ce7..4c548cf95 100644 --- a/meson.build +++ b/meson.build @@ -308,7 +308,7 @@ endif if cc.has_header('sys/socket.h') conf.set('HAVE_SOCKET_H', '1') endif -if cc.has_header('sys/io.h') +if cc.has_header('sys/io.h') and cc.has_function('outb', prefix: '#include ') conf.set('HAVE_IO_H', '1') endif if cc.has_header('linux/ethtool.h')