Merge commit 'refs/top-bases/linux-zfs-branch' into linux-zfs-branch
This commit is contained in:
commit
9e9e801d8e
|
@ -11,6 +11,9 @@ LIBRARY := libspl
|
|||
HOSTCFLAGS += @HOSTCFLAGS@
|
||||
HOSTCFLAGS += -I@LIBDIR@/libspl/include
|
||||
|
||||
HOSTLDFLAGS += -pthread
|
||||
HOSTLDFLAGS += -lrt
|
||||
|
||||
hostprogs-y := zu
|
||||
always := $(hostprogs-y)
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
#pragma ident "%Z%%M% %I% %E% SMI"
|
||||
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -38,7 +39,7 @@ gethrtime(void)
|
|||
|
||||
rc = clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
if (rc) {
|
||||
fprintf(stderr, "Error: clock_gettime() = %d\n", rc)
|
||||
fprintf(stderr, "Error: clock_gettime() = %d\n", rc);
|
||||
abort();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue