forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: inet.h match inet_sockif.c definition
Fixes psock_socket: ERROR: socket address family unsupported: 2 When using the minimal CONFIG_NET configuration typically used for SocketCAN Update net/inet/inet.h Co-authored-by: Xiang Xiao <[email protected]> Update net/inet/inet.h Co-authored-by: Xiang Xiao <[email protected]>
- Loading branch information
1 parent
3c4053a
commit c371afc
Showing
5 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,8 @@ | |
* include/nuttx/net/netconfig.h | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
* SPDX-FileCopyrightText: 2007, 2011, 2014-2015, 2017-2019 Gregory Nutt. All rights reserved. | ||
* SPDX-FileCopyrightText: 2007, 2011, 2014-2015, 2017-2019 Gregory Nutt. | ||
* All rights reserved. | ||
* SPDX-FileCopyrightText: 2001-2003, Adam Dunkels. All rights reserved. | ||
* SPDX-FileContributor: Gregory Nutt <[email protected]> | ||
* SPDX-FileContributor: Adam Dunkels <[email protected]> | ||
|
@@ -67,9 +68,9 @@ | |
* matter. It should, however, be valid in the current configuration. | ||
*/ | ||
|
||
#if defined(CONFIG_NET_IPv4) | ||
#if defined(HAVE_PFINET_SOCKETS) | ||
# define NET_SOCK_FAMILY AF_INET | ||
#elif defined(CONFIG_NET_IPv6) | ||
#elif defined(HAVE_PFINET6_SOCKETS) | ||
# define NET_SOCK_FAMILY AF_INET6 | ||
#elif defined(CONFIG_NET_LOCAL) | ||
# define NET_SOCK_FAMILY AF_LOCAL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters