From f490f621cb1ffaadfe56a3c299a437d92e70d9bf Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Fri, 24 Aug 2018 14:31:16 +0800 Subject: [PATCH] feat(lwip): Add extra "sntp/sntp.h" to be same as esp-idf --- components/lwip/component.mk | 5 +++-- components/lwip/include/lwip/apps/sntp/sntp.h | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 components/lwip/include/lwip/apps/sntp/sntp.h diff --git a/components/lwip/component.mk b/components/lwip/component.mk index 96de04b3..d2557eef 100644 --- a/components/lwip/component.mk +++ b/components/lwip/component.mk @@ -2,9 +2,10 @@ # Component Makefile # COMPONENT_ADD_INCLUDEDIRS += include/lwip/apps \ + include/lwip \ lwip/src/include \ - port/esp8266/include \ - lwip/src/include/posix + lwip/src/include/posix \ + port/esp8266/include COMPONENT_SRCDIRS += apps/dhcpserver \ apps/multi-threads \ diff --git a/components/lwip/include/lwip/apps/sntp/sntp.h b/components/lwip/include/lwip/apps/sntp/sntp.h new file mode 100644 index 00000000..f066a6a8 --- /dev/null +++ b/components/lwip/include/lwip/apps/sntp/sntp.h @@ -0,0 +1,15 @@ +// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "lwip/apps/sntp.h"