<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - xf86-video-intel-2.99.917 should check for <sys/mkdev.h> being needed on SunOS for backlight.c"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89763">89763</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>xf86-video-intel-2.99.917 should check for <sys/mkdev.h> being needed on SunOS for backlight.c
</td>
</tr>
<tr>
<th>Product</th>
<td>xorg
</td>
</tr>
<tr>
<th>Version</th>
<td>7.7 (2012.06)
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Solaris
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver/intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>chris@chris-wilson.co.uk
</td>
</tr>
<tr>
<th>Reporter</th>
<td>richard@netbsd.org
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>From the Solaris man page MAKEDEV(3C)
<span class="quote">>NAME
> makedev, major, minor - manage a device number</span >
>
<span class="quote">>SYNOPSIS
> #include <sys/types.h>
> #include <sys/mkdev.h></span >
>
<span class="quote">> dev_t makedev(major_t maj, minor_t min);</span >
>
<span class="quote">> major_t major(dev_t device);</span >
>
<span class="quote">> minor_t minor(dev_t device);</span >
Needed the following quick and dirty patch:
<span class="quote">>--- 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"</span >
perhaps a configure time check should be made...</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>