net: Fix compile errors when SNTP enabled and not DATE
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 8 Apr 2015 06:41:24 +0000 (01:41 -0500)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:35 +0000 (11:11 -0600)
commit3c56fb82804d15536f77b245c89156568819ca63
tree8ecdf2b54ff5445ed6428c963e9736c210cddf35
parent717234e00249960df3a252c9188fc0abe9d8f4e3
net: Fix compile errors when SNTP enabled and not DATE

When SNTP is enabled and DATE is not, to_tm() is not built in. It could
be defined when TIMESTAMP is defined, so check for that.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
net/sntp.c