From: Alan Coopersmith <alan.coopersmith@oracle.com>
To: Emil Velikov <emil.l.velikov@gmail.com>
Cc: ML dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH:libdrm] include <sys/types.h> & <sys/mkdev.h> directly for major() and minor()
Date: Wed, 08 Jul 2015 11:01:11 -0700 [thread overview]
Message-ID: <559D6567.40102@oracle.com> (raw)
In-Reply-To: <CACvgo52XkXUVM=B2LpSjztux4ZK3GbeZbgejW3-aRmF1dJDOvg@mail.gmail.com>
On 07/ 8/15 10:59 AM, Emil Velikov wrote:
> On 8 July 2015 at 18:41, Alan Coopersmith <alan.coopersmith@oracle.com> wrote:
>> Linux seems to pick these up via another header, but Solaris needs them
>> explictly included, or we get undefined symbol errors for major & minor.
>>
>> v2: use headers documented in makedev(3C) man page instead of sysmacros.h
>>
>> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
>> ---
>> libkms/linux.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/libkms/linux.c b/libkms/linux.c
>> index 4d47148..53e03c3 100644
>> --- a/libkms/linux.c
>> +++ b/libkms/linux.c
>> @@ -40,6 +40,8 @@
>> #include <string.h>
>> #include <unistd.h>
>> #include <sys/stat.h>
>> +#include <sys/types.h>
>> +#include <sys/mkdev.h>
> I'll add the HAVE_SYS_MKDEV_H guard around the latter, and push this
> in the next few days. Unless someone objects that is ;-)
Oh, whoops, I forgot to check if there was a guard needed - that sounds
great to me, thanks.
--
-Alan Coopersmith- alan.coopersmith@oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2015-07-08 18:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-07 0:45 [PATCH:libdrm] include <sys/sysmacros.h> directly for major() and minor() Alan Coopersmith
2015-07-08 16:19 ` Emil Velikov
2015-07-08 17:39 ` Alan Coopersmith
2015-07-08 17:41 ` [PATCH:libdrm] include <sys/types.h> & <sys/mkdev.h> " Alan Coopersmith
2015-07-08 17:59 ` Emil Velikov
2015-07-08 18:01 ` Alan Coopersmith [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=559D6567.40102@oracle.com \
--to=alan.coopersmith@oracle.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=emil.l.velikov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.