Bugzilla bug #40941: define _PR_HAVE_LARGE_OFF_T for ia64.
authorwtc%netscape.com
Wed, 07 Jun 2000 19:15:27 +0000
changeset 1408 f3c6e97ab9654e10787952eeff1c81d0039e2443
parent 1407 1199eb32a00f53e8ced5cec0feaa5af33d3fd27b
child 1409 1441f24706f3fc618be55b4fd6785ddcab9b7577
push idunknown
push userunknown
push dateunknown
bugs40941
Bugzilla bug #40941: define _PR_HAVE_LARGE_OFF_T for ia64. Removed ia64 classic nspr user-level thread stuff because it doesn't work.
pr/include/md/_linux.h
--- a/pr/include/md/_linux.h
+++ b/pr/include/md/_linux.h
@@ -75,17 +75,17 @@ extern PRInt32 _PR_x86_AtomicSet(PRInt32
 #endif
 
 #define USE_SETJMP
 #if defined(__GLIBC__) && __GLIBC__ >= 2
 #define _PR_POLL_AVAILABLE
 #endif
 #undef _PR_USE_POLL
 #define _PR_STAT_HAS_ONLY_ST_ATIME
-#if defined(__alpha)
+#if defined(__alpha) || defined(__ia64__)
 #define _PR_HAVE_LARGE_OFF_T
 #else
 #define _PR_NO_LARGE_FILES
 #endif
 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
 #define _PR_INET6
 #define _PR_HAVE_GETHOSTBYNAME2
 #define _PR_INET6_PROBE
@@ -143,27 +143,16 @@ extern void _MD_CleanupBeforeExit(void);
 #define _MD_GET_SP_PTR(_t) &(_MD_GET_SP(_t))
 #define _MD_GET_FP_PTR(_t) ((void *) 0)
 #define _MD_SP_TYPE __ptr_t
 #endif /* defined(__GLIBC__) && __GLIBC__ >= 2 */
 
 /* XXX not sure if this is correct, or maybe it should be 17? */
 #define PR_NUM_GCREGS 9
 
-#elif defined(__ia64__)
-/* ia64 based Linux */
-
-#define _MD_GET_SP(_t)
-#define _MD_SET_FP(_t, val)
-#define _MD_GET_SP_PTR(_t) &(_MD_GET_SP(_t))
-#define _MD_GET_FP_PTR(_t) ((void *) 0)
-#define _MD_SP_TYPE long int
-
-#undef PR_NUM_GCREGS
-
 #elif defined(__mc68000__)
 /* m68k based Linux */
 
 /*
  * On the m68k, glibc still uses the old style sigjmp_buf, even
  * in glibc 2.0.7.
  */
 #if defined(__GLIBC__) && __GLIBC__ >= 2