gallium: Add support for BSD operating systems, tested with FreeBSD
authorBenjamin Close <Benjamin.Close@clearchain.com>
Wed, 25 Feb 2009 04:51:10 +0000 (20:51 -0800)
committerBrian Paul <brianp@vmware.com>
Wed, 25 Feb 2009 14:56:43 +0000 (07:56 -0700)
commitdbab39c6caacb974062ac574b365254412aea412
tree78503019f2b6c4095fc14160f133551ddc999d74
parentafe139f629251f38afd5b477d5b00f47d17da60f
gallium: Add support for BSD operating systems, tested with FreeBSD

BSD supports pipe in the same way as linux hence options which
are safe for linux are also safe for BSD. Define PIPE_OS_BSD in
include/pipe/p_config.h and adjust the defines to make use of it.

Also define MAP_ANONYMOUS for BSD systems which use MAP_ANON

Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com>
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/gallium/auxiliary/rtasm/rtasm_execmem.c
src/gallium/auxiliary/util/u_stream_stdc.c
src/gallium/auxiliary/util/u_time.c
src/gallium/auxiliary/util/u_time.h
src/gallium/drivers/trace/tr_dump.c
src/gallium/include/pipe/p_config.h
src/gallium/include/pipe/p_thread.h