Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Work around global d...



details:   https://anonhg.NetBSD.org/src/rev/43848c0917ed
branches:  riastradh-drm2
changeset: 788103:43848c0917ed
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:15:14 2013 +0000

description:
Work around global definitions of min and max in drm_crtc.c.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_crtc.c |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r ed2875f9ecd0 -r 43848c0917ed sys/external/bsd/drm2/dist/drm/drm_crtc.c
--- a/sys/external/bsd/drm2/dist/drm/drm_crtc.c Wed Jul 24 02:14:58 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_crtc.c Wed Jul 24 02:15:14 2013 +0000
@@ -2901,6 +2901,12 @@
 }
 EXPORT_SYMBOL(drm_property_create_bitmask);
 
+#ifdef __NetBSD__
+/* XXX Whattakludge...  */
+#  define      min     min_hack
+#  define      max     max_hack
+#endif
+
 struct drm_property *drm_property_create_range(struct drm_device *dev, int flags,
                                         const char *name,
                                         uint64_t min, uint64_t max)
@@ -2920,6 +2926,11 @@
 }
 EXPORT_SYMBOL(drm_property_create_range);
 
+#ifdef __NetBSD__
+#  undef       min
+#  undef       max
+#endif
+
 int drm_property_add_enum(struct drm_property *property, int index,
                          uint64_t value, const char *name)
 {



Home | Main Index | Thread Index | Old Index