aboutsummaryrefslogtreecommitdiffstats
path: root/drmtools.c
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2018-02-27 15:35:28 +0000
committerGerd Hoffmann <kraxel@redhat.com>2018-03-08 09:23:07 +0100
commit1a716532ebb468cb5661a661ff45e3c9fb642ec3 (patch)
tree012268a41d8d6ce6a5e572c2c9465acf5038bb3e /drmtools.c
parent53fe12a7e12951240a89cb23c605a044d99e5750 (diff)
downloaddrminfo-1a716532ebb468cb5661a661ff45e3c9fb642ec3.tar.gz
drmtools: add missing <endian.h> include
`__BYTE_ORDER` `__LITTLE_ENDIAN`, and `__BIG_ENDIAN` are not defined otherwise, and the first check ends up being accepted because both undefined tokens get resolved to 0. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Message-Id: <20180227153528.29635-1-eric.engestrom@imgtec.com>
Diffstat (limited to 'drmtools.c')
-rw-r--r--drmtools.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drmtools.c b/drmtools.c
index c71ddae..3bd207e 100644
--- a/drmtools.c
+++ b/drmtools.c
@@ -6,6 +6,7 @@
#include <errno.h>
#include <string.h>
#include <inttypes.h>
+#include <endian.h>
#include <sys/ioctl.h>
#include <libdrm/drm_fourcc.h>