]> sjero.net Git - wget/blobdiff - src/sysdep.h
[svn] Convert URLs in <form action=...>.
[wget] / src / sysdep.h
index 6568980a668bdd98cfe50ffb306eca8d947e5a7f..226a8c545246668f8e7337861631d7c67902d5aa 100644 (file)
@@ -94,6 +94,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #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))
@@ -156,6 +163,12 @@ char *strptime ();
 #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
@@ -178,11 +191,11 @@ void *memcpy ();
 #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)