[Bug 89763] New: xf86-video-intel-2.99.917 should check for <sys/mkdev.h> being needed on SunOS for backlight.c

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 25 06:16:14 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89763

            Bug ID: 89763
           Summary: xf86-video-intel-2.99.917 should check for
                    <sys/mkdev.h> being needed on SunOS for backlight.c
           Product: xorg
           Version: 7.7 (2012.06)
          Hardware: Other
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Driver/intel
          Assignee: chris at chris-wilson.co.uk
          Reporter: richard at netbsd.org
        QA Contact: intel-gfx-bugs at lists.freedesktop.org

>From the Solaris man page MAKEDEV(3C)
>NAME
>     makedev, major, minor - manage a device number
>
>SYNOPSIS
>     #include <sys/types.h>
>     #include <sys/mkdev.h>
>
>     dev_t makedev(major_t maj, minor_t min);
>
>     major_t major(dev_t device);
>
>     minor_t minor(dev_t device);

Needed the following quick and dirty patch:
>--- backlight.c.orig    2014-11-18 21:50:39.000000000 +0000
>+++ backlight.c
>@@ -49,6 +49,9 @@
> 
> #include "backlight.h"
> #include "fd.h"
>+#ifdef __sun
>+#include <sys/mkdev.h>
>+#endif
> 
> #define BACKLIGHT_CLASS "/sys/class/backlight"

perhaps a configure time check should be made...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20150325/319ef01a/attachment-0001.html>


More information about the intel-gfx-bugs mailing list