Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif Fix buil...
details: https://anonhg.NetBSD.org/src/rev/5be3cc399593
branches: trunk
changeset: 847019:5be3cc399593
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Dec 07 13:31:41 2019 +0000
description:
Fix build for ports without __BUS_SPACE_HAS_STREAM_METHODS defined
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/os.h | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 934392e98fbe -r 5be3cc399593 sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/os.h
--- a/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/os.h Sat Dec 07 12:47:07 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/os.h Sat Dec 07 13:31:41 2019 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index