summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
120bf67)
<vinschen@redhat.com> and myself.
<tim@multitalents.net>
- (Bal) Patch for lack of RA_RESTART in misc.c for mysignal by
stevesk
<tim@multitalents.net>
- (Bal) Patch for lack of RA_RESTART in misc.c for mysignal by
stevesk
+ - (djm) Fix my breaking of cygwin builds, Patch from Corinna Vinschen
+ <vinschen@redhat.com> and myself.
20010217
- (bal) OpenBSD Sync:
20010217
- (bal) OpenBSD Sync:
CC=@CC@
LD=@LD@
CFLAGS=@CFLAGS@
CC=@CC@
LD=@LD@
CFLAGS=@CFLAGS@
-CPPFLAGS=@CPPFLAGS@ -I. -I$(srcdir)/openbsd-compat -I$(srcdir) $(PATHS) @DEFS@
+CPPFLAGS=@CPPFLAGS@ -I$(srcdir)/openbsd-compat $(PATHS) @DEFS@
LIBS=@LIBS@
AR=@AR@
RANLIB=@RANLIB@
LIBS=@LIBS@
AR=@AR@
RANLIB=@RANLIB@
#include <windows.h>
#define is_winnt (GetVersion() < 0x80000000)
#include <windows.h>
#define is_winnt (GetVersion() < 0x80000000)
-int binary_open(const char *filename, int flags, mode_t mode)
+#if defined(open) && open == binary_open
+# undef open
+#endif
+#if defined(pipe) && open == binary_pipe
+# undef pipe
+#endif
+
+int binary_open(const char *filename, int flags, ...)
+ va_list ap;
+ mode_t mode;
+
+ va_start(ap, flags);
+ mode = va_arg(ap, mode_t);
+ va_end(ap);
return open(filename, flags | O_BINARY, mode);
}
return open(filename, flags | O_BINARY, mode);
}
+#ifndef _BSD_CYGWIN_UTIL_H
+#define _BSD_CYGWIN_UTIL_H
#define pipe binary_pipe
#endif /* HAVE_CYGWIN */
#define pipe binary_pipe
#endif /* HAVE_CYGWIN */
+
+#endif /* _BSD_CYGWIN_UTIL_H */