You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by dr...@apache.org on 2000/12/31 13:26:41 UTC

cvs commit: apr/shmem/unix/mm aclocal.m4 configure.in

dreid       00/12/31 04:26:41

  Modified:    shmem/unix/mm aclocal.m4 configure.in
  Log:
  I managed to miss these from a commit a while ago and so this hasn't
  been working on BeOS for a while.  Oh well, here is the fix.
  
  Revision  Changes    Path
  1.9       +14 -1     apr/shmem/unix/mm/aclocal.m4
  
  Index: aclocal.m4
  ===================================================================
  RCS file: /home/cvs/apr/shmem/unix/mm/aclocal.m4,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- aclocal.m4	2000/12/13 11:09:46	1.8
  +++ aclocal.m4	2000/12/31 12:26:41	1.9
  @@ -249,6 +249,7 @@
   case "$1" in
       MM_SHMT_MM*    ) CFLAGS="-DTEST_MMAP   $CFLAGS" ;;
       MM_SHMT_IPCSHM ) CFLAGS="-DTEST_SHMGET $CFLAGS" ;;
  +    MM_SHMT_BEOS   ) CFLAGS="-DTEST_AREAS  $CFLAGS" ;;
   esac
   AC_TRY_RUN(
   changequote(<<, >>)dnl
  @@ -288,6 +289,10 @@
   #if !defined(MAP_FAILED)
   #define MAP_FAILED ((void *)-1)
   #endif
  +#ifdef MM_OS_BEOS
  +#include <kernel/OS.h>
  +#endif
  +
   
   int testit(int size)
   {
  @@ -319,6 +324,14 @@
       shmdt(segment);
       shmctl(fd, IPC_RMID, NULL);
   #endif
  +#ifdef TEST_BEOS
  +    area_id id;
  +    id = create_area("mm_test", (void*)&segment, B_ANY_ADDRESS, size, 
  +              B_LAZY_LOCK, B_READ_AREA|B_WRITE_AREA);
  +    if (id < 0)
  +        return 0;
  +    delete_area(id);
  +#endif
       return 1;
   }
   
  @@ -343,7 +356,7 @@
           m = 1024*1024*32;
           b = 0;
           for (;;) {
  -            /* fprintf(stderr, "t=%d, m=%d, b=%d\n", t, m, b); */
  +            /* fprintf(stderr, "t=%d, m=%d, b=%d\n", t, m, b); */ 
               rc = testit(m);
               if (rc) {
                   d = ((t-m)/2);
  
  
  
  1.8       +1 -0      apr/shmem/unix/mm/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/shmem/unix/mm/configure.in,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- configure.in	2000/10/22 15:43:24	1.7
  +++ configure.in	2000/12/31 12:26:41	1.8
  @@ -89,6 +89,7 @@
   case $PLATFORM in
      *-*-sunos* ) AC_DEFINE(MM_OS_SUNOS)  ;;
      BS2000-*-* ) AC_DEFINE(MM_OS_BS2000) ;;
  +   *-*-beos*  ) AC_DEFINE(MM_OS_BEOS) ;;
   esac
   
   dnl #