This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH v3] Merge parts of <sys/time.h> from FreeBSD
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Thu, 19 Mar 2015 09:12:41 +0100
- Subject: Re: [PATCH v3] Merge parts of <sys/time.h> from FreeBSD
- Authentication-results: sourceware.org; auth=none
- References: <1426240839-14891-1-git-send-email-sebastian dot huber at embedded-brains dot de> <1426719464 dot 23074 dot 64 dot camel at ubuntu-sellcey> <20150319080226 dot GE2368 at calimero dot vinschen dot de>
On 19/03/15 09:02, Corinna Vinschen wrote:
On Mar 18 15:57, Steve Ellcey wrote:
On Fri, 2015-03-13 at 11:00 +0100, Sebastian Huber wrote:
Merge parts of the latest <sys/time.h> from FreeBSD to Newlib. This has
two reasons.
1. We want to use the FreeBSD timecounters for timekeeping in RTEMS.
See also https://devel.rtems.org/ticket/2271.
2. This makes the port of the network stack from FreeBSD easier.
Is anyone else having problems building newlib with this time.h change?
My MIPS build is dying with:
In file included
from /scratch/sellcey/repos/newlib/src/newlib/newlib/libc/time/time.c:38:0:
/scratch/sellcey/repos/newlib/src/newlib/newlib/libc/include/sys/time.h:60:2: error: unknown type name 'uint64_t'
uint64_t frac;
^
I will investigate some more but I wanted to see if anyone else was
getting this error. I probably would have seen it sooner but I just
moved to using the new git repository.
I try currently to figure out, why this is not a problem on FreeBSD.
Does it help to s/uint64_t/__uint64_t/ in sys/time.h?
Since we define uint64_t in terms of __uint64_t in <stdint.h> this
should be fine.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschÃftliche Mitteilung im Sinne des EHUG.