From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 92082] Build on Solaris: xf86drm.c:3021: error: 'PATH_MAX' undeclared (first use in this function) Date: Tue, 22 Sep 2015 22:31:23 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1380786275==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3137B6EACB for ; Tue, 22 Sep 2015 15:31:24 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1380786275== Content-Type: multipart/alternative; boundary="1442961083.feed5Ea0.26224"; charset="UTF-8" --1442961083.feed5Ea0.26224 Date: Tue, 22 Sep 2015 22:31:23 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=92082 Bug ID: 92082 Summary: Build on Solaris: xf86drm.c:3021: error: 'PATH_MAX' undeclared (first use in this function) Product: DRI Version: DRI git Hardware: x86-64 (AMD64) OS: Solaris Status: NEW Severity: normal Priority: medium Component: libdrm Assignee: dri-devel@lists.freedesktop.org Reporter: evgeny.v.litvinenko@gmail.com commit 291b2bb92c5fc90101417b80bbdc6c994be5fff2 (xf86drm: move ifdef __linux__ guards where needed) introduces the following error when build on illumos (OpenIndiana): xf86drm.c: In function 'drmGetDevices': xf86drm.c:3021: error: 'PATH_MAX' undeclared (first use in this function) xf86drm.c:3021: error: (Each undeclared identifier is reported only once xf86drm.c:3021: error: for each function it appears in.) OpenIndiana has the line #define PATH_MAX 1024 /* max # of characters in a path name */ in /usr/include/limits.h May be xf86drm.c should #include limits.h? -- You are receiving this mail because: You are the assignee for the bug. --1442961083.feed5Ea0.26224 Date: Tue, 22 Sep 2015 22:31:23 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 92082
Summary Build on Solaris: xf86drm.c:3021: error: 'PATH_MAX' undeclared (first use in this function)
Product DRI
Version DRI git
Hardware x86-64 (AMD64)
OS Solaris
Status NEW
Severity normal
Priority medium
Component libdrm
Assignee dri-devel@lists.freedesktop.org
Reporter evgeny.v.litvinenko@gmail.com

commit 291b2bb92c5fc90101417b80bbdc6c994be5fff2 (xf86drm: move ifdef __linux__
guards where needed)
introduces the following error when build on illumos (OpenIndiana):

xf86drm.c: In function 'drmGetDevices':
xf86drm.c:3021: error: 'PATH_MAX' undeclared (first use in this function)
xf86drm.c:3021: error: (Each undeclared identifier is reported only once
xf86drm.c:3021: error: for each function it appears in.)

OpenIndiana has the line
#define PATH_MAX        1024    /* max # of characters in a path name */
in /usr/include/limits.h

May be xf86drm.c should #include limits.h?


You are receiving this mail because:
  • You are the assignee for the bug.
--1442961083.feed5Ea0.26224-- --===============1380786275== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1380786275==--