From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Andreas Oberritter <obi@opendreambox.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v2] cogl: kms: include necessary header for size_t
Date: Thu, 30 Jan 2014 14:11:51 +0000 [thread overview]
Message-ID: <1391091111.24655.196.camel@ted> (raw)
In-Reply-To: <1390940874-11839-1-git-send-email-obi@opendreambox.org>
On Tue, 2014-01-28 at 21:27 +0100, Andreas Oberritter wrote:
> Fixes compilation in cases where stddef.h is not already
> included by EGL headers.
>
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
> ---
> :-P
The sad thing is it appears this wasn't tested. We added it, it causes
warnings during parsing and build failures.
I've pushed a fix but its frustrating.
Cheers,
Richard
> meta/recipes-graphics/cogl/cogl-1.0_1.16.0.bb | 2 ++
> .../kms-include-stddef.h-before-drm.h.patch | 33 ++++++++++++++++++++++
> 2 files changed, 35 insertions(+)
> create mode 100644 meta/recipes-graphics/cogl/cogl-1.16.0/kms-include-stddef.h-before-drm.h.patch
>
> diff --git a/meta/recipes-graphics/cogl/cogl-1.0_1.16.0.bb b/meta/recipes-graphics/cogl/cogl-1.0_1.16.0.bb
> index 5e5c82b..0ef9726 100644
> --- a/meta/recipes-graphics/cogl/cogl-1.0_1.16.0.bb
> +++ b/meta/recipes-graphics/cogl/cogl-1.0_1.16.0.bb
> @@ -2,5 +2,7 @@ require cogl-1.0.inc
>
> LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
>
> +SRC_URI += "file://kms-include-stddef.h-before-drm.h.patch"
> +
> SRC_URI[archive.md5sum] = "611a61bed04354cbfffa3dc27feb6d4f"
> SRC_URI[archive.sha256sum] = "75c2c4636a050fda7ee8722ce3d9c618b08799ed92bbb72b4fdff3e73b096094"
> diff --git a/meta/recipes-graphics/cogl/cogl-1.16.0/kms-include-stddef.h-before-drm.h.patch b/meta/recipes-graphics/cogl/cogl-1.16.0/kms-include-stddef.h-before-drm.h.patch
> new file mode 100644
> index 0000000..7cce279
> --- /dev/null
> +++ b/meta/recipes-graphics/cogl/cogl-1.16.0/kms-include-stddef.h-before-drm.h.patch
> @@ -0,0 +1,33 @@
> +Upstream-Status: Submitted [cogl@lists.freedesktop.org]
> +
> +From 5e4f4689308732a0570a1631169247157c59f064 Mon Sep 17 00:00:00 2001
> +From: Andreas Oberritter <obi@saftware.de>
> +Date: Tue, 28 Jan 2014 18:36:04 +0100
> +Subject: [PATCH] kms: include stddef.h before drm.h
> +
> +Not doing so leads to the following error, if stddef.h is not included
> +indirectly through EGL headers:
> +
> +| libdrm/drm.h:132:2: error: unknown type name 'size_t'
> +| size_t name_len; /**< Length of name buffer */
> +
> +Signed-off-by: Andreas Oberritter <obi@saftware.de>
> +---
> + cogl/winsys/cogl-winsys-egl-kms.c | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
> +index f7c9cfb..144ad9b 100644
> +--- a/cogl/winsys/cogl-winsys-egl-kms.c
> ++++ b/cogl/winsys/cogl-winsys-egl-kms.c
> +@@ -40,6 +40,7 @@
> +
> + #include <EGL/egl.h>
> + #include <EGL/eglext.h>
> ++#include <stddef.h>
> + #include <drm.h>
> + #include <xf86drm.h>
> + #include <xf86drmMode.h>
> +--
> +1.8.3.2
> +
next prev parent reply other threads:[~2014-01-30 14:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-28 19:15 [PATCH] cogl: kms: include necessary header for size_t Andreas Oberritter
2014-01-28 19:21 ` Henning Heinold
2014-01-28 20:27 ` [PATCH v2] " Andreas Oberritter
2014-01-30 14:11 ` Richard Purdie [this message]
2014-01-30 14:54 ` Andreas Oberritter
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=1391091111.24655.196.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=obi@opendreambox.org \
--cc=openembedded-core@lists.openembedded.org \
/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.