<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 - alloca means including <alloca.h> on SunOS"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91727">91727</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>alloca means including <alloca.h> on SunOS
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>XOrg git
          </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>DRM/AMDgpu
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>richard@netbsd.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>came across this issue in amdgpu/amdgpu_cs.c while building libdrm-2.4.64

The following patch get over it for me:
<span class="quote">>$NetBSD: patch-amdgpu_amdgpu__cs.c,v 1.1 2015/08/18 13:26:29 richard Exp $
>at least on SunOS, alloca needs alloca.h
>--- amdgpu/amdgpu_cs.c.orig 2015-08-13 22:27:03.000000000 +0000
>+++ amdgpu/amdgpu_cs.c
>@@ -32,7 +32,9 @@
> #include <pthread.h>
> #include <sched.h>
> #include <sys/ioctl.h>
>-
>+#ifdef HAVE_ALLOCA_H
>+#include <alloca.h>
>+#endif
> #include "xf86drm.h"
> #include "amdgpu_drm.h"
> #include "amdgpu_internal.h"</span ></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>