Skip to content

(1.8 branch) fix FTBS against recent xorg server tree

Recent xserver master moved out the BUG_*() macros from os.h, causing FTBS on xf86-input-synaptics:

synaptics.c: In function 'clickpad_guess_clickfingers': synaptics.c:2638:5: error: implicit declaration of function 'BUG_RETURN_VAL' [-Werror=implicit-function-declaration] 2638 | BUG_RETURN_VAL(hw->num_mt_mask > sizeof(close_point) * 8, 0);

Since that macro is only used once, and that particular case deserves some more expressive error message anyways, it's trivial doing an explicit error printout here, instead of having to support the BUG_* macros as official module API on xserver side forever.

Signed-off-by: Enrico Weigelt, metux IT consult info@metux.net Reported-By: Peter Hutterer peter.hutterer@who-t.net

Merge request reports