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:
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?