Browse Source

loader: include dlfcn.h when building with HAVE_LIBUDEV

The code depending on the definitions is already wrapped
in the same conditional so go ahead and wrap the include.

Otherwise we'll brake compilation on platforms that are
missing the header. Add assert.h in there as well, as it
is introduced and used in the same fashon.

Cc: Eric Anholt <eric@anholt.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74122
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
tags/mesa-10.1-rc1
Emil Velikov 13 years ago
parent
commit
61c825e862
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/loader/loader.c

+ 2
- 0
src/loader/loader.c View File

@@ -67,8 +67,10 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_LIBUDEV
#include <assert.h>
#include <dlfcn.h>
#endif
#include "loader.h"

#ifndef __NOT_HAVE_DRM_H

Loading…
Cancel
Save