All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Nicola Pace <nicola@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Error compiling posix skin
Date: Wed, 24 May 2006 19:59:46 +0200	[thread overview]
Message-ID: <17524.40722.711406.322672@domain.hid> (raw)
In-Reply-To: <44743475.4070108@domain.hid>

[-- Attachment #1: message body and .signature --]
[-- Type: text/plain, Size: 477 bytes --]

Nicola Pace wrote:
 > I am trying to compile xenomai.2.2-rc1, but compiling the posix skin I 
 > get the error :
 > 
 > /usr/src/xenomai-2.2-rc1/include/posix/time.h:103: parse error before 
 > 'clock_id'
 > 
 > Some Suggestions ?

Your libc is likely a bit old and does not define clockid_t, what
version of glibc are you using ? Could you try the attached patch ?
Maybe other definitions than clockid_t are missing, timer_t for
example.

-- 


					    Gilles Chanteperdrix.

[-- Attachment #2: xeno-posix-time-h.diff --]
[-- Type: text/plain, Size: 446 bytes --]

Index: include/posix/time.h
===================================================================
--- include/posix/time.h	(revision 1135)
+++ include/posix/time.h	(working copy)
@@ -48,6 +48,11 @@
 #define CLOCK_MONOTONIC 1
 #endif /* CLOCK_MONOTONIC */
 
+#ifndef __clockid_t_defined
+#define __clockid_t_defined 1
+typedef int clockid_t;
+#endif /* !__clockid_t_defined */
+
 #if defined(__KERNEL__) || defined(__XENO_SIM__)
 
 struct sigevent;

      reply	other threads:[~2006-05-24 17:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-24 10:24 [Xenomai-help] Error compiling posix skin Nicola Pace
2006-05-24 17:59 ` Gilles Chanteperdrix [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=17524.40722.711406.322672@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=nicola@domain.hid \
    --cc=xenomai@xenomai.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.