Commit 6539a6f0 authored by Guido Trentalancia's avatar Guido Trentalancia
Browse files

Prevent the following compile-time error due to a missing system

header file (see --enable-config-udev which defaults to "auto"):

  CCLD     Xorg
/usr/bin/ld: common/.libs/libcommon.a(udev.o): in function `device_added':
udev.c:(.text+0x2bb): undefined reference to `major'
/usr/bin/ld: udev.c:(.text+0x2fe): undefined reference to `minor'
/usr/bin/ld: udev.c:(.text+0x666): undefined reference to `minor'
/usr/bin/ld: udev.c:(.text+0x672): undefined reference to `major'
/usr/bin/ld: udev.c:(.text+0x69e): undefined reference to `minor'
/usr/bin/ld: udev.c:(.text+0x6ab): undefined reference to `major'
/usr/bin/ld: common/.libs/libcommon.a(udev.o): in function `device_removed':
udev.c:(.text+0xb6a): undefined reference to `minor'
/usr/bin/ld: udev.c:(.text+0xb77): undefined reference to `major'
/usr/bin/ld: common/.libs/libcommon.a(udev.o): in function `config_udev_odev_probe':
udev.c:(.text+0x10ee): undefined reference to `minor'
/usr/bin/ld: udev.c:(.text+0x10fc): undefined reference to `major'

Fixes: xorg/xserver#879

Signed-off-by: Guido Trentalancia's avatarGuido Trentalancia <guido@trentalancia.com>
parent 7d0e660e
Pipeline #59854 passed with stages
in 13 minutes and 30 seconds
......@@ -30,6 +30,7 @@
#include <libudev.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/sysmacros.h>
#include "input.h"
#include "inputstr.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment