apps/netutils/netlib: Various fixes needed to get a clean netlib build with Bluetooth only.

This commit is contained in:
Gregory Nutt
2018-04-03 10:01:55 -06:00
parent c1ec9ab9a6
commit 0094b411da
8 changed files with 31 additions and 5 deletions

View File

@@ -1,7 +1,8 @@
/****************************************************************************
* netutils/netlib/netlib_getifstatus.c
*
* Copyright (C) 2007-2009, 2011, 2014 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2009, 2011, 2014, 2018 Gregory Nutt. All rights
* reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -71,6 +72,8 @@
# define AF_FAMILY AF_PACKET
#elif defined(CONFIG_NET_IEEE802154)
# define AF_FAMILY AF_IEEE802154
#elif defined(CONFIG_NET_BLUETOOTH)
# define AF_FAMILY AF_BLUETOOTH
#elif defined(CONFIG_NET_USRSOCK)
# define AF_FAMILY AF_INET
#endif