Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-10-27 17:35:46 +0300
committerCorinna Vinschen <corinna@vinschen.de>2014-10-27 17:35:46 +0300
commit8134be8ac29f12794704b282e9b6f61e7a65254c (patch)
tree589d2a695038854d710e424cff2a4e3dc06f7a46 /newlib
parent4be37ddfc889768f9ea9fce4a85120876cceb48b (diff)
* libc/include/sys/unistd.h (sethostname): Declare if
requested.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/unistd.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 67180a025..6e542568d 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * libc/include/sys/unistd.h (sethostname): Declare if
+ requested.
+
2014-10-20 Freddie Chopin <freddie_chopin@op.pl>
* libc/time/gmtime_r.c (gmtime_r): Remove dead code.
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 2c3afc93a..a741383d0 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -166,6 +166,9 @@ int _EXFUN(setgid, (gid_t __gid ));
#if defined(__CYGWIN__)
int _EXFUN(setgroups, (int ngroups, const gid_t *grouplist ));
#endif
+#if __BSD_VISIBLE || (defined(_XOPEN_SOURCE) && __XSI_VISIBLE < 500)
+int _EXFUN(sethostname, (const char *, size_t));
+#endif
int _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
int _EXFUN(setpgrp, (void ));
#if defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)