Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
5058ed3e
Commit
5058ed3e
authored
9 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Only build shutdown if CONFIG_NET=y. The warning is pretty annoying
parent
8a87e3ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
arch
+1
-1
1 addition, 1 deletion
arch
configs
+1
-1
1 addition, 1 deletion
configs
libc/net/Make.defs
+3
-0
3 additions, 0 deletions
libc/net/Make.defs
libc/net/lib_shutdown.c
+5
-1
5 additions, 1 deletion
libc/net/lib_shutdown.c
with
10 additions
and
3 deletions
arch
@
152bbe9b
Subproject commit
7ad0465595bd053d81012283ca9cfc8d67836d17
Subproject commit
152bbe9b9285d4f6141f3e8839ba0fc1d0d96be2
This diff is collapsed.
Click to expand it.
configs
@
08498337
Subproject commit
3eab5db1733b5dcd55505925b0a989d8f2085aa3
Subproject commit
08498337c384cea7c918676495a9b3e6907cb092
This diff is collapsed.
Click to expand it.
libc/net/Make.defs
+
3
−
0
View file @
5058ed3e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
libc/net/lib_shutdown.c
+
5
−
1
View file @
5058ed3e
...
...
@@ -39,12 +39,14 @@
#include
<sys/socket.h>
#ifdef CONFIG_NET
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Public F
U
nctions
* Public F
u
nctions
****************************************************************************/
/****************************************************************************
...
...
@@ -84,3 +86,5 @@ int shutdown(int sockfd, int how)
#warning Missing Logic
return
OK
;
}
#endif
/* CONFIG_NET */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment