From cfd2c7bea8bcc4d04a1ace959fed7fd2e1ba3784 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 15 Apr 2003 20:13:49 +0000 Subject: [PATCH] * newlib/libc/include/sys/unistd.h: add declaration for gethostid on Cygwin. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/unistd.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a2266a6d2..b82bd80bd 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2003-04-15 Chris January + + * newlib/libc/include/sys/unistd.h: add declaration for gethostid on + Cygwin. + 2003-04-09 J"orn Rennecke * libc/machine/sh/memset.S: Avoid clobbering volatile diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 8678a3c9b..85a2f7aae 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -60,6 +60,9 @@ uid_t _EXFUN(geteuid, (void )); gid_t _EXFUN(getgid, (void )); #endif int _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] )); +#if defined(__CYGWIN__) +long _EXFUN(gethostid, (void)); +#endif char _EXFUN(*getlogin, (void )); #if defined(_POSIX_THREAD_SAFE_FUNCTIONS) int _EXFUN(getlogin_r, (char *name, size_t namesize) );