apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <i...@apache.org>
Subject [patch] enabling solaris sparc atomics
Date Sun, 17 Feb 2002 20:22:26 GMT
The solaris specific version of the atomics seems to work for me in 
limiting testing. I'll try it on several different types of sparcs
to make sure it's hunky-dory

what I need from the list:
	* non 2.8 machines
	* non GCC

I'll commit this on wednesday otherwise.


Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.408
diff -u -u -r1.408 configure.in
--- configure.in        15 Feb 2002 22:36:40 -0000      1.408
+++ configure.in        17 Feb 2002 20:20:28 -0000
@@ -322,6 +322,18 @@
         enable_threads="no"
         eolstr="\\n"
         ;;
+   *sun*)
+       case $host_cpu in
+        *sparc*)
+           OSDIR="solaris_sparc"
+           eolstr="\\n"
+            ;;
+        *)
+            OSDIR="unix"
+            eolstr="\\n"
+            ;;
+       esac
+       ;;
     *)
         OSDIR="unix"
         eolstr="\\n"
Index: include/apr_atomic.h
===================================================================
RCS file: /home/cvs/apr/include/apr_atomic.h,v
retrieving revision 1.5
diff -u -u -r1.5 apr_atomic.h
--- include/apr_atomic.h        17 Feb 2002 19:54:03 -0000      1.5
+++ include/apr_atomic.h        17 Feb 2002 20:20:28 -0000
@@ -87,7 +87,7 @@
  #define apr_atomic_read(mem)         atomic_read(mem)
  #define apr_atomic_init(pool)        APR_SUCCESS

-#elif defined(__sparc__not_ready_yet)
+#elif defined(__sparc__)
  #define apr_atomic_t apr_uint32_t
  #define apr_atomic_read(p)  *p


Mime
View raw message