Only build shutdown if CONFIG_NET=y. The warning is pretty annoying
This commit is contained in:
parent
8a87e3ca6e
commit
5058ed3ef4
2
arch
2
arch
@ -1 +1 @@
|
||||
Subproject commit 7ad0465595bd053d81012283ca9cfc8d67836d17
|
||||
Subproject commit 152bbe9b9285d4f6141f3e8839ba0fc1d0d96be2
|
2
configs
2
configs
@ -1 +1 @@
|
||||
Subproject commit 3eab5db1733b5dcd55505925b0a989d8f2085aa3
|
||||
Subproject commit 08498337c384cea7c918676495a9b3e6907cb092
|
@ -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
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user