restore direct libm dependency (fixes #222)

This commit is contained in:
Dima Krasner 2021-12-22 07:53:40 +02:00 committed by Jente Hidskes
parent de03250ca0
commit 0e87c2c8d8
2 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,7 @@ wlroots = dependency('wlroots', version: '>= 0.15.0', fallback: ['wlroots
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
wayland_server = dependency('wayland-server')
xkbcommon = dependency('xkbcommon')
math = dependency('m')
wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir')
wayland_scanner = find_program('wayland-scanner')
@ -153,6 +154,7 @@ executable(
wayland_server,
wlroots,
xkbcommon,
math,
],
install: true,
)

2
util.c
View file

@ -6,6 +6,8 @@
* See the LICENSE file accompanying this file.
*/
#include <math.h>
#include "util.h"
int