mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
libs/unistd and other affected files: Hostname support no longer depends on CONFIG_NET since the host name is also useful in the non-network environment. CONFIG_NET_HOSTNAME changed to CONFIG_LIB_HOSTNAME.
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
*
|
||||
* FIELD Default
|
||||
* sysname NuttX
|
||||
* nodename CONFIG_NET_HOSTNAME
|
||||
* nodename CONFIG_LIB_HOSTNAME
|
||||
* release From version.h
|
||||
* version From version.h
|
||||
* machine CONFIG_ARCH
|
||||
|
||||
@@ -361,10 +361,8 @@ FAR char **getoptargp(void); /* Optional argument following option */
|
||||
FAR int *getoptindp(void); /* Index into argv */
|
||||
FAR int *getoptoptp(void); /* Unrecognized option character */
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
int gethostname(FAR char *name, size_t size);
|
||||
int sethostname(FAR const char *name, size_t size);
|
||||
#endif
|
||||
|
||||
/* Get configurable system variables */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user