[PATCH] Don't define several function in grp.h under Cygwin
Corinna Vinschen
vinschen@redhat.com
Tue Sep 16 15:34:00 GMT 2003
Hi,
I've checked in the below patch which adds the daemon function for Cygwin.
Corinna
* libc/include/sys/unistd.h: Declare function daemon for Cygwin.
Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.44
diff -u -p -r1.44 unistd.h
--- libc/include/sys/unistd.h 10 Jul 2003 15:31:30 -0000 1.44
+++ libc/include/sys/unistd.h 10 Sep 2003 15:52:31 -0000
@@ -29,6 +29,9 @@ int _EXFUN(chroot, (const char *__pa
int _EXFUN(close, (int __fildes ));
char _EXFUN(*ctermid, (char *__s ));
char _EXFUN(*cuserid, (char *__s ));
+#if defined(__CYGWIN__)
+int _EXFUN(daemon, (int nochdir, int noclose));
+#endif
int _EXFUN(dup, (int __fildes ));
int _EXFUN(dup2, (int __fildes, int __fildes2 ));
#if defined(__CYGWIN__)
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
More information about the Newlib
mailing list