mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 02:17:37 +08:00
apps/netutils/netlib: Various fixes needed to get a clean netlib build with Bluetooth only.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* netutils/netlib/netlib_getessid.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2017-2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -73,6 +73,9 @@
|
||||
#elif defined(CONFIG_NET_IEEE802154)
|
||||
# define PF_FAMILY PF_IEEE802154
|
||||
# define AF_FAMILY AF_IEEE802154
|
||||
#elif defined(CONFIG_NET_BLUETOOTH)
|
||||
# define PF_FAMILY PF_BLUETOOTH
|
||||
# define AF_FAMILY AF_BLUETOOTH
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
@@ -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
|
||||
|
@@ -1,7 +1,8 @@
|
||||
/****************************************************************************
|
||||
* netutils/netlib/netlib_getmacaddr.c
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2011, 2017 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2011, 2017-2018 Gregory Nutt. All rights
|
||||
* reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -68,6 +69,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
|
||||
|
@@ -73,6 +73,9 @@
|
||||
#elif defined(CONFIG_NET_IEEE802154)
|
||||
# define PF_FAMILY PF_IEEE802154
|
||||
# define AF_FAMILY AF_IEEE802154
|
||||
#elif defined(CONFIG_NET_BLUETOOTH)
|
||||
# define PF_FAMILY PF_BLUETOOTH
|
||||
# define AF_FAMILY AF_BLUETOOTH
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
@@ -1,7 +1,8 @@
|
||||
/****************************************************************************
|
||||
* netutils/netlib/netlib_setifstatus.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
|
||||
@@ -70,6 +71,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
|
||||
|
@@ -1,7 +1,8 @@
|
||||
/****************************************************************************
|
||||
* netutils/netlib/netlib_setmacaddr.c
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2011-2012, 2017 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2011-2012, 2017-2018 Gregory Nutt. All rights
|
||||
* reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -73,6 +74,9 @@
|
||||
#elif defined(CONFIG_NET_IEEE802154)
|
||||
# define PF_FAMILY PF_IEEE802154
|
||||
# define AF_FAMILY AF_IEEE802154
|
||||
#elif defined(CONFIG_NET_BLUETOOTH)
|
||||
# define PF_FAMILY PF_BLUETOOTH
|
||||
# define AF_FAMILY AF_BLUETOOTH
|
||||
#elif defined(CONFIG_NET_USRSOCK)
|
||||
# define PF_FAMILY PF_INET
|
||||
# define AF_FAMILY AF_INET
|
||||
|
Reference in New Issue
Block a user