[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OpenBSD: gettimeofday and sys/time.h errors
From: |
Mike Miller |
Subject: |
Re: OpenBSD: gettimeofday and sys/time.h errors |
Date: |
Sun, 11 Aug 2013 00:44:06 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Aug 09, 2013 at 23:18:07 -0700, Paul Eggert wrote:
> Hmm, OK, how about the following patch instead?
Ok, some good progress. This fixes the "gettimeofday has not been
declared" error and the "invalid conversion" errors with timeval, both
with and without gnulib sys/select.h. I think that's enough to get me
past the errors I originally encountered in Octave.
However, I'm still getting the following errors:
test-sys_select.c:44: error: size of array 'verify_tv_sec_type' is negative
test-sys_time.c:27: error: size of array 'verify_tv_sec_type' is negative
And this is due to the following deviation from POSIX in the system
headers:
/usr/include/amd64/_types.h:128:
typedef int __time_t;
/usr/include/sys/time.h:48:
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* and microseconds */
};
So is this as close as we can get with gnulib until OpenBSD addresses
this?
Thanks,
--
mike