make error() portable

error() is not posix but gnu extension so may not be available on all
kind of systemsi e.g. musl.

Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2 jobs for review_error in 58 seconds (queued for 1 second)
Status Job ID Name Coverage
  Container Prep
passed #253568
container_prep

00:00:25

 
  Build
passed #253569
build-native-meson

00:00:32