This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH] Add gethostid for cygwin
- From: Christopher Faylor <cgf at redhat dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 15 Apr 2003 16:14:03 -0400
- Subject: [PATCH] Add gethostid for cygwin
2003-04-15 Chris January <chris at atomice dot net>
* newlib/libc/include/sys/unistd.h: add declaration for gethostid on
Cygwin.
Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.42
diff -p -u -r1.42 unistd.h
--- libc/include/sys/unistd.h 14 Mar 2003 18:39:05 -0000 1.42
+++ libc/include/sys/unistd.h 15 Apr 2003 20:12:26 -0000
@@ -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) );