Stop undefining _ATOMIC_TYPE in Solaris/NetBSD section of xf86atomic.h
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 7 Feb 2015 17:12:25 +0000 (09:12 -0800)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 12 Feb 2015 22:18:31 +0000 (14:18 -0800)
commitdd89e1efd05299ec4015d144158d2eceeb6a6484
treefbf38b78769742156f7aab45058e7ef1a59cb9b1
parent95f23cf894757d05a6b6c980062a46968dc069b1
Stop undefining _ATOMIC_TYPE in Solaris/NetBSD section of xf86atomic.h

Since the atomic_set() macro references _ATOMIC_TYPE, undefining it
broke that macro, resulting in build errors of:
"intel_bufmgr_gem.c", line 775: undefined symbol: _ATOMIC_TYPE

Now that we're leaving the macro in the namespace, renamed it to start
with LIBDRM_ instead of _ to avoid polluting others namespace.

Regression introduced in 87fdd32c8779648 Add NetBSD atomic ops support.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-By: Thomas Klausner <wiz@NetBSD.org>
xf86atomic.h