summaryrefslogtreecommitdiff
path: root/nuttx/include/time.h
diff options
context:
space:
mode:
authorDavid Sidrane <david_s5@nscdg.com>2015-04-07 16:37:35 -1000
committerDavid Sidrane <david_s5@nscdg.com>2015-04-07 16:37:35 -1000
commit6c18397707a17eb2097f4957fb4355a46398958d (patch)
treeaecadc00b426808bcdbd1d20f808a71f0de8cf6d /nuttx/include/time.h
parent76cf23616b1eb151f04ffda19b375ede65639a5d (diff)
downloadpx4-nuttx-upstream_to_greg.tar.gz
px4-nuttx-upstream_to_greg.tar.bz2
px4-nuttx-upstream_to_greg.zip
Added CONFIG_TIME_EXTENDED to support tm_wday, tm_yday and tm_isdst for integration with 3rd party librariesupstream_to_greg
Diffstat (limited to 'nuttx/include/time.h')
-rw-r--r--nuttx/include/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/time.h b/nuttx/include/time.h
index 4b21270d9..6596bf32f 100644
--- a/nuttx/include/time.h
+++ b/nuttx/include/time.h
@@ -136,7 +136,7 @@ struct tm
int tm_mday; /* Day of the month (1-31) */
int tm_mon; /* Month (0-11) */
int tm_year; /* Years since 1900 */
-#ifdef CONFIG_LIBC_LOCALTIME
+#if defined(CONFIG_LIBC_LOCALTIME) || defined(CONFIG_TIME_EXTENDED)
int tm_wday; /* Day of the week (0-6) */
int tm_yday; /* Day of the year (0-365) */
int tm_isdst; /* Non-0 if daylight savings time is in effect */