From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id C8CF16EA35 for ; Wed, 11 Dec 2019 00:59:51 +0000 (UTC) From: D Scott Phillips Date: Tue, 10 Dec 2019 16:52:27 -0800 Message-Id: <20191211005235.67897-22-d.scott.phillips@intel.com> In-Reply-To: <20191211005235.67897-1-d.scott.phillips@intel.com> References: <20191211005235.67897-1-d.scott.phillips@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 21/29] lib: undefine FreeBSD libc's ALIGN macro List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: On FreeBSD, if you include many of the non-POSIX headers, you get inflicted with a definition of an ALIGN() macro that has something to do with network protocols. Here we include a header that provides it and then undefine it so that we can provide our own definition. Signed-off-by: D Scott Phillips --- lib/drmtest.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/drmtest.h b/lib/drmtest.h index 632c616b..0fc59311 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -33,6 +33,10 @@ #include #include #include +#if defined(__FreeBSD__) +# include +# undef ALIGN +#endif #include -- 2.23.0 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev