diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2018-02-27 15:35:28 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-08 09:23:07 +0100 |
commit | 1a716532ebb468cb5661a661ff45e3c9fb642ec3 (patch) | |
tree | 012268a41d8d6ce6a5e572c2c9465acf5038bb3e /drmtools.c | |
parent | 53fe12a7e12951240a89cb23c605a044d99e5750 (diff) | |
download | drminfo-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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> |