Le 05/04/13 12:51, Gabriele Bulfon a écrit :
Hi,
I cloned X11 sources from latest OI tree (cloned from last Oracle available X11 
tree, now closed).
While trying to reconfigure build system to use gcc44, I stumbled upon an error 
on libdrm:
intel_bufmgr_gem.c:2476: error: O_CLOEXEC undeclared
Now I've read that this is a new implementation by Oracle Solaris 11, not found 
in illumos.
Do you have any clue to bypass this problem?
Thanx,
Gabriele.

the following is a reasonable shortterm solution until you update:
patch-include_drm_drm.h
::::::::::::::
$NetBSD: patch-include_drm_drm.h,v 1.1 2012/08/13 09:05:07 wiz Exp $

Fix compilation on systems that don't provide O_CLOEXEC.

--- include/drm/drm.h.orig      2012-08-11 18:49:45.000000000 +0000
+++ include/drm/drm.h
@@ -618,7 +618,11 @@ struct drm_get_cap {
        __u64 value;
 };

+#ifdef O_CLOEXEC
 #define DRM_CLOEXEC O_CLOEXEC
+#else
+#define DRM_CLOEXEC 0
+#endif





-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to