[Bug 91727] alloca means including <alloca.h> on SunOS

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 22 22:22:42 PDT 2015


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

            Bug ID: 91727
           Summary: alloca means including <alloca.h> on SunOS
           Product: DRI
           Version: XOrg git
          Hardware: Other
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel at lists.freedesktop.org
          Reporter: richard at netbsd.org

came across this issue in amdgpu/amdgpu_cs.c while building libdrm-2.4.64

The following patch get over it for me:
>$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"

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/69a3f8fa/attachment-0001.html>


More information about the dri-devel mailing list