Fix build for ports without __BUS_SPACE_HAS_STREAM_METHODS defined
This commit is contained in:
parent
ec6e765cf3
commit
ee0db1e1ec
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: os.h,v 1.4 2018/08/27 07:35:13 riastradh Exp $ */
|
||||
/* $NetBSD: os.h,v 1.5 2019/12/07 13:31:41 jmcneill Exp $ */
|
||||
|
||||
#ifndef __NOUVEAU_OS_H__
|
||||
#define __NOUVEAU_OS_H__
|
||||
|
@ -74,4 +74,14 @@
|
|||
#endif /* !ioread32_native */
|
||||
#endif
|
||||
|
||||
#ifdef __NetBSD__
|
||||
#include <sys/bus.h>
|
||||
#ifndef __BUS_SPACE_HAS_STREAM_METHODS
|
||||
#define bus_space_read_stream_2 bus_space_read_2
|
||||
#define bus_space_read_stream_4 bus_space_read_4
|
||||
#define bus_space_write_stream_2 bus_space_write_2
|
||||
#define bus_space_write_stream_4 bus_space_write_4
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue