Skip to content
Snippets Groups Projects
Commit 5058ed3e authored by Gregory Nutt's avatar Gregory Nutt
Browse files

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

parent 8a87e3ca
No related branches found
No related tags found
No related merge requests found
arch @ 152bbe9b
Subproject commit 7ad0465595bd053d81012283ca9cfc8d67836d17
Subproject commit 152bbe9b9285d4f6141f3e8839ba0fc1d0d96be2
configs @ 08498337
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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment