Commit 985553df authored by Sergii Romantsov's avatar Sergii Romantsov Committed by Chris Wilson
Browse files

sna: fix of byteswap.h absence on bsd

OpenBSD, FreeBSD and NetBSD don't contains file byteswap.h.
Used specifics of them.

Fixes: 746ab3bb (sna: Added AYUV format support for textured and sprite video adapters.)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109268


CC: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarSergii Romantsov <sergii.romantsov@globallogic.com>
parent e5ff8e18
......@@ -59,7 +59,17 @@
#include "intel_options.h"
#include <xf86xv.h>
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/types.h>
#include <sys/endian.h>
#ifdef __OpenBSD__
#define bswap_32 swap32
#else
#define bswap_32 bswap32
#endif
#else
#include <byteswap.h>
#endif
#ifdef SNA_XVMC
#define _SNA_XVMC_SERVER_
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment