diff options
author | David M. Lee <dlee@respoke.io> | 2015-07-24 17:04:35 -0500 |
---|---|---|
committer | David M. Lee <dlee@respoke.io> | 2015-08-07 19:35:13 -0500 |
commit | 40caf0ad9bef07bdfb568a88192c157dd1840100 (patch) | |
tree | 01d1e4f6745b5eeaeb607e5bb85a2884a6ff9087 /main/Makefile | |
parent | 309dd2a4090ccdd1ea31d8d5415a645daddd3883 (diff) |
Replaces clock_gettime() with ast_tsnow()
clock_gettime() is, unfortunately, not portable. But I did like that
over our usual `ts.tv_nsec = tv.tv_usec * 1000` copy/paste code we
usually do when we want a timespec and all we have is ast_tvnow().
This patch adds ast_tsnow(), which mimics ast_tvnow(), but returns a
timespec. If clock_gettime() is available, it will use that. Otherwise
ast_tsnow() falls back to using ast_tvnow().
Change-Id: Ibb1ee67ccf4826b9b76d5a5eb62e90b29b6c456e
Diffstat (limited to 'main/Makefile')
-rw-r--r-- | main/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/Makefile b/main/Makefile index bfdfb463d..b25fb450a 100644 --- a/main/Makefile +++ b/main/Makefile @@ -41,6 +41,7 @@ AST_LIBS+=$(URIPARSER_LIB) AST_LIBS+=$(UUID_LIB) AST_LIBS+=$(CRYPT_LIB) AST_LIBS+=$(AST_CLANG_BLOCKS_LIBS) +AST_LIBS+=$(RT_LIB) ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc kfreebsd-gnu),) ifneq ($(findstring LOADABLE_MODULES,$(MENUSELECT_CFLAGS)),) |