Corinna Vinschen
2004-Aug-22 17:21 UTC
[PATCH] openbsd-compat/mktemp.c: Compile time error with gcc 3.4
Hi, the below patch avoids a compile time error on Cygwin, when using gcc 3.4.x. The #ifdef is superfluous anyway. Thanks, Corinna Index: openbsd-compat/mktemp.c ==================================================================RCS file: /cvs/openssh_cvs/openbsd-compat/mktemp.c,v retrieving revision 1.6 diff -p -u -r1.6 mktemp.c --- openbsd-compat/mktemp.c 24 Nov 2003 02:33:34 -0000 1.6 +++ openbsd-compat/mktemp.c 22 Aug 2004 17:19:13 -0000 @@ -40,11 +40,6 @@ static char rcsid[] = "$OpenBSD: mktemp.c,v 1.17 2003/06/02 20:18:37 millert Exp $"; #endif /* LIBC_SCCS and not lint */ -#ifdef HAVE_CYGWIN -#define open binary_open -extern int binary_open(); -#endif - static int _gettemp(char *, int *, int, int); int -- Corinna Vinschen Cygwin Project Co-Leader Red Hat, Inc.