Subject: machine includes
To: None <port-sparc@sun-lamp.cs.berkeley.edu>
From: Dylan D Zehr <ddzehr@telecom.ksu.edu>
List: port-sparc
Date: 05/12/1994 20:57:24
	I have been having trouble getting libc to compile.  The
error was SIZE_T_MAX undefined.  I was told that this was in the latest
include files.  It is in the latest include files for the i386 version
not the sparc version. 

*** 56,70 ****
  #define       LONG_MAX        0x7fffffff      /* max value for a long */
  #define       LONG_MIN        (-0x7fffffff-1) /* min value for a long */
  
! #if !defined(_ANSI_SOURCE)
! #define       SSIZE_MAX       INT_MAX         /* max value for a ssize_t */
! 
! #if !defined(_POSIX_SOURCE)
! #define       SIZE_T_MAX      UINT_MAX        /* max value for a size_t */
! 
  #define       UQUAD_MAX       0xffffffffffffffffLL            /* max unsigned quad */
  #define       QUAD_MAX        0x7fffffffffffffffLL            /* max signed quad */
  #define       QUAD_MIN        (-0x7fffffffffffffffLL-1)       /* min signed quad */
  
- #endif /* !_POSIX_SOURCE */
- #endif /* !_ANSI_SOURCE */
--- 56,64 ----
  #define       LONG_MAX        0x7fffffff      /* max value for a long */
  #define       LONG_MIN        (-0x7fffffff-1) /* min value for a long */
  
! #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
  #define       UQUAD_MAX       0xffffffffffffffffLL            /* max unsigned quad */
  #define       QUAD_MAX        0x7fffffffffffffffLL            /* max signed quad */
  #define       QUAD_MIN        (-0x7fffffffffffffffLL-1)       /* min signed quad */
+ #endif

---
Dylan D Zehr                  <ddzehr@telecom.ksu.edu>


------------------------------------------------------------------------------