You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/02/19 22:09:54 UTC

[incubator-nuttx] branch master updated: libs/libc/time/lib_gmtimer.c: Fix compile problem from PR317

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new d202e2e  libs/libc/time/lib_gmtimer.c:  Fix compile problem from PR317
d202e2e is described below

commit d202e2ef615a70cbee0ba5237d4818a6c6d0f5bf
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Wed Feb 19 15:39:24 2020 -0600

    libs/libc/time/lib_gmtimer.c:  Fix compile problem from PR317
    
    PR317 removed definitions for SEC_PER_MIN, SEC_PER_HOUR, and SEC_PER_DAY because these were duplicates of definitions in include/nuttx/clock.h.  However, the PR did not include nuttx/clock.h so the removal of these definitions resulted in compilation failures.
    
    Noted by Ouss4
---
 libs/libc/time/lib_gmtimer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/libc/time/lib_gmtimer.c b/libs/libc/time/lib_gmtimer.c
index 6012b2c..54d01e7 100644
--- a/libs/libc/time/lib_gmtimer.c
+++ b/libs/libc/time/lib_gmtimer.c
@@ -46,6 +46,7 @@
 #include <debug.h>
 
 #include <nuttx/time.h>
+#include <nuttx/clock.h>
 
 /****************************************************************************
  * Private Function Prototypes