Only build shutdown if CONFIG_NET=y. The warning is pretty annoying

This commit is contained in:
Gregory Nutt 2015-09-09 12:14:04 -06:00
parent 8a87e3ca6e
commit 5058ed3ef4
4 changed files with 10 additions and 3 deletions

2
arch

@ -1 +1 @@
Subproject commit 7ad0465595bd053d81012283ca9cfc8d67836d17
Subproject commit 152bbe9b9285d4f6141f3e8839ba0fc1d0d96be2

@ -1 +1 @@
Subproject commit 3eab5db1733b5dcd55505925b0a989d8f2085aa3
Subproject commit 08498337c384cea7c918676495a9b3e6907cb092

View File

@ -37,7 +37,10 @@
CSRCS += lib_addrconfig.c lib_etherntoa.c lib_htons.c lib_htonl.c
CSRCS += lib_inetaddr.c lib_inetntoa.c lib_inetntop.c lib_inetpton.c
ifeq ($(CONFIG_NET),y)
CSRCS += lib_shutdown.c
endif
# Routing table support

View File

@ -39,12 +39,14 @@
#include <sys/socket.h>
#ifdef CONFIG_NET
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Public FUnctions
* Public Functions
****************************************************************************/
/****************************************************************************
@ -84,3 +86,5 @@ int shutdown(int sockfd, int how)
#warning Missing Logic
return OK;
}
#endif /* CONFIG_NET */