#endif
#endif
+#ifdef __BEOS__
+# undef READ
+# undef WRITE
+# define READ(fd, buf, cnt) recv((fd), (buf), (cnt), 0)
+# define WRITE(fd, buf, cnt) send((fd), (buf), (cnt), 0)
+#endif
+
/* mswindows.h defines these. */
#ifndef READ
# define READ(fd, buf, cnt) read ((fd), (buf), (cnt))
#ifndef HAVE_VSNPRINTF
int vsnprintf ();
#endif
+#ifndef HAVE_USLEEP
+int usleep ();
+#endif
+#ifndef HAVE_MEMMOVE
+void *memmove ();
+#endif
/* SunOS brain damage -- for some reason, SunOS header files fail to
declare the functions below, which causes all kinds of problems
#endif /* sun */
#endif /* STDC_HEADERS */
-/* Some systems don't provide MAP_FAILED, a symbolic constant for the
- value returned by mmap() when it doesn't work. Usually, this
- constant should be -1. This only makes sense for files that use
- mmap() and include sys/mman.h *before* sysdep.h, but doesn't hurt
- others. */
+/* Some systems (Linux libc5, "NCR MP-RAS 3.0", and others) don't
+ provide MAP_FAILED, a symbolic constant for the value returned by
+ mmap() when it doesn't work. Usually, this constant should be -1.
+ This only makes sense for files that use mmap() and include
+ sys/mman.h *before* sysdep.h, but doesn't hurt others. */
#ifndef MAP_FAILED
# define MAP_FAILED ((void *) -1)