loader: move loader_open_device out of HAVE_LIBUDEV block
authorJulien Isorce <julien.isorce@gmail.com>
Tue, 23 Jun 2015 21:47:05 +0000 (22:47 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 24 Jun 2015 12:43:44 +0000 (13:43 +0100)
commit30d67d38246410274713380664be87cd1df9486a
tree99085e3a2b8f2bf1bfe95133db50732e9c505a48
parent390f94e3581384838595185a06d5943089d3f9ab
loader: move loader_open_device out of HAVE_LIBUDEV block

Fixes the following build issue, when building without libudev.

CCLD   libGL.la
./.libs/libglx.a(dri2_glx.o): In function `dri2CreateScreen':
src/glx/dri2_glx.c:1186: undefined reference to `loader_open_device'
collect2: ld returned 1 exit status

CCLD     libEGL.la
Undefined symbols for architecture x86_64:
"_loader_open_device", referenced from:
  _dri2_initialize_x11_dri2 in libegl_dri2.a(platform_x11.o)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91077
Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/loader/loader.c