tests/amdgpu: Fix on FreeBSD

FreeBSD have endian.h under the sys directory.

Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
main
Emmanuel Vadot 2020-11-04 16:13:56 +01:00 committed by Simon Ser
parent d4fdeaf19b
commit d034db142d
1 changed files with 4 additions and 0 deletions

View File

@ -29,7 +29,11 @@
#include <string.h>
#include <unistd.h>
#ifdef __FreeBSD__
#include <sys/endian.h>
#else
#include <endian.h>
#endif
#include <strings.h>
#include <xf86drm.h>