I have a software piece which checks for existance of monotonic clock with
following testpiece:
#define _POSIX_C_SOURCE 199309L
#include <time.h>
int main(int argc, char *argv[]) {
struct timespec tp;
if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
return 0;
else
return 1;
}
It fails in DragonFly:
In file included from clock-test.c:2:
/usr/include/time.h:135: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'strftime'
clock-test.c: In function 'main':
clock-test.c:5: error: storage size of 'tp' isn't known
clock-test.c:7: error: 'CLOCK_MONOTONIC' undeclared (first use in this
function)
clock-test.c:7: error: (Each undeclared identifier is reported only once
clock-test.c:7: error: for each function it appears in.)
It's obvious that someone has to include sys/time.h somewhere, but who and
where? What's buggy - DragonFly or this test?
--
Hasso Tepper
| Srivatsa Vaddagiri | [PATCH 1/2] rcfs core patch |
| Thomas Gleixner | Re: Regression in 2.6.27 caused by commit bfc0f59 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Florian Schmidt | blacklist kernel boot option |
git: | |
| Scott Chacon | Git Community Book |
| Peter Stahlir | Git as a filesystem |
| Matthew L Foster | git and time |
| Jakub Narebski | Re: VCS comparison table |
| frantisek holop | nptd regression in 4.2 |
| J.W. Zondag | Dell PE1950 III - Perc 6i |
| Alexey Suslikov | OT: OpenBSD on Asus eeePC |
| Richard Stallman | Real men don't attack straw men |
| hooanon05 | [PATCH 57/67] aufs sysfs interface |
| Michael Loftis | Re: [RFC] VM: I have a dream... |
| Suparna Bhattacharya | Reviewing ext3 improvement patches (delalloc, mballoc, extents) |
| Josef 'Jeff' Sipek | [PATCH 09/32] Unionfs: cache-coherency - dentries |
