CVS: main/osdep swab.c, NONE, 1.1 Makefile, 1.16, 1.17 shmem.c, 1.11, 1.12 timer-lx.c, 1.9, 1.10
CVS change done by Reimar Döffinger CVS Update of /cvsroot/mplayer/main/osdep In directory mail:/var2/tmp/cvs-serv20487/osdep Modified Files: Makefile shmem.c timer-lx.c Added Files: swab.c Log Message: Zeta OS support, mostly working. --- NEW FILE --- #include "../config.h" #ifndef HAVE_SWAB /* system has no swab. emulate via bswap */ #include "../bswap.h" #include <unistd.h> void swab(const void *from, void *to, ssize_t n) { const int16_t *in = (int16_t*)from; int16_t *out = (int16_t*)to; int i; n /= 2; for (i = 0 ; i < n; i++) { out[i] = bswap_16(in[i]); } } #endif Index: Makefile =================================================================== RCS file: /cvsroot/mplayer/main/osdep/Makefile,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- Makefile 27 Jun 2004 17:54:31 -0000 1.16 +++ Makefile 11 Oct 2004 19:26:13 -0000 1.17 @@ -4,6 +4,7 @@ LIBNAME = libosdep.a SRCS= shmem.c strsep.c strl.c vsscanf.c scandir.c gettimeofday.c fseeko.c \ + swab.c # timer.c ifeq ($(TARGET_ARCH_X86),yes) Index: shmem.c =================================================================== RCS file: /cvsroot/mplayer/main/osdep/shmem.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- shmem.c 26 May 2003 18:35:42 -0000 1.11 +++ shmem.c 11 Oct 2004 19:26:13 -0000 1.12 @@ -20,6 +20,8 @@ #include <sys/uio.h> #ifdef HAVE_SYS_MMAN_H #include <sys/mman.h> +#elif defined(__BEOS__) +#include <mman.h> #endif #include <sys/socket.h> #include <fcntl.h> Index: timer-lx.c =================================================================== RCS file: /cvsroot/mplayer/main/osdep/timer-lx.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- timer-lx.c 4 Aug 2004 16:14:43 -0000 1.9 +++ timer-lx.c 11 Oct 2004 19:26:13 -0000 1.10 @@ -1,6 +1,9 @@ // Precise timer routines for LINUX (C) LGB & A'rpi/ASTRAL #include <unistd.h> +#ifdef __BEOS__ +#define usleep(t) snooze(t) +#endif #include <stdlib.h> #include <time.h> #include <sys/time.h>
participants (1)
-
syncmail@mplayerhq.hu