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 Avoid LIST_HEAD as a...



details:   https://anonhg.NetBSD.org/src/rev/4db58efa4062
branches:  riastradh-drm2
changeset: 788101:4db58efa4062
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:14:42 2013 +0000

description:
Avoid LIST_HEAD as a list declarator in drm-crtc.c.

diffstat:

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

diffs (16 lines):

diff -r d6b4d114d66f -r 4db58efa4062 sys/external/bsd/drm2/dist/drm/drm_crtc.c
--- a/sys/external/bsd/drm2/dist/drm/drm_crtc.c Wed Jul 24 02:14:25 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_crtc.c Wed Jul 24 02:14:42 2013 +0000
@@ -2630,7 +2630,12 @@
        struct drm_connector *connector;
        int ret = 0;
        struct drm_display_mode *dup_mode, *next;
+#ifdef __NetBSD__
+       /* LIST_HEAD has another meaning in NetBSD.  */
+       struct list_head list = LIST_HEAD_INIT(list);
+#else
        LIST_HEAD(list);
+#endif
 
        list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
                if (!connector->encoder)



Home | Main Index | Thread Index | Old Index