Retroarch build error

I’m getting errors trying to build libretro/RetroArch on Linux. The steps I’ve used before:

git clone git://github.com/libretro/libretro-super.git
cd libretro-super
sh libretro-fetch.sh
sh libretro-build.sh
sudo sh libretro-install.sh
sh retroarch-build.sh
cd retroarch
sudo make install

It’s all fine until I run retroarch-build.sh. The error output from this:

input/udev_input.c: In function ‘udev_input_init’:
input/udev_input.c:702:36: error: ‘XKB_CONTEXT_NO_FLAGS’ undeclared (first use in this function)
    udev->xkb_ctx = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
                                    ^
input/udev_input.c:702:36: note: each undeclared identifier is reported only once for each function it appears in
input/udev_input.c:719:71: error: ‘XKB_MAP_COMPILE_NO_FLAGS’ undeclared (first use in this function)
       udev->xkb_map = xkb_keymap_new_from_names(udev->xkb_ctx, &rule, XKB_MAP_COMPILE_NO_FLAGS);
                                                                       ^
make: *** [obj-unix/input/udev_input.o] Error 1
make: *** Waiting for unfinished jobs....

It all used to work. I’m not sure when I started getting this. It was working when 1.0.0.0 was released, though.

Are you missing a dependency? Libudev-dev, perhaps?

Try again now.

That did it, thanks! Fedora’s only packaging libxkbcommon 0.3.1 for now, I guess.