[266] in Zephyr_Bugs

home help back first fref pref prev next nref lref last post

PS/2 changes

daemon@ATHENA.MIT.EDU (Richard Basch)
Wed Mar 20 15:01:26 1991

Date: Wed, 20 Mar 91 15:01:09 -0500
To: bug-zephyr@MIT.EDU
From: Richard Basch <basch@MIT.EDU>


We had a problem crop up with str*casecmp()...  Enclosed are the
patches...

-R


*** /tmp/,RCSt1007569	Wed Mar 20 14:59:35 1991
--- config/config.Imakefile	Wed Mar 20 14:58:28 1991
***************
*** 15,21 ****
  /* XXX BEGIN LIKELY SITE-SPECIFIC CONFIGURATION XXX */
  
  /* This should be set to the root of your Zephyr source tree */
! SRCTOP=/afs/athena.mit.edu/astaff/project/zephyr/src
  
  /* IMAKE names the command to be used to build Makefiles from
     Imakefiles.  If you have Imake installed somewhere else, 
--- 15,21 ----
  /* XXX BEGIN LIKELY SITE-SPECIFIC CONFIGURATION XXX */
  
  /* This should be set to the root of your Zephyr source tree */
! SRCTOP=$(BUILDTOP)
  
  /* IMAKE names the command to be used to build Makefiles from
     Imakefiles.  If you have Imake installed somewhere else, 
***************
*** 26,32 ****
  /* GLOBALCDEFS are passed to every C compile statement */
  /* For Ultrix version 2, put -DULTRIX22 on this line */
  /* If your C Library doesn't have strcasecmp() and strncasecmp()
!    (case-insensitive string comparisons), put -DSTRCASE on this line.  */
  /* If the "flock" system call should not be used for some reason, put
     -DNO_FLOCK here.  */
  #ifdef _AIX
--- 26,35 ----
  /* GLOBALCDEFS are passed to every C compile statement */
  /* For Ultrix version 2, put -DULTRIX22 on this line */
  /* If your C Library doesn't have strcasecmp() and strncasecmp()
!    (case-insensitive string comparisons), and Kerberos is not
!    being used in conjunction with Zephyr put -DSTRCASE on this line.
!    (The Kerberos library includes the declarations for str*casecmp()
!    on systems that do not have these in their C library.) */
  /* If the "flock" system call should not be used for some reason, put
     -DNO_FLOCK here.  */
  #ifdef _AIX
***************
*** 100,106 ****
   *
   * This is ignored unless PROFILED_LIBS is defined.
   */
! #if defined (mips) || (defined (_AIX) && defined (i386))
  #define PROF_FLAG -p
  #else
  #define PROF_FLAG -pg
--- 103,109 ----
   *
   * This is ignored unless PROFILED_LIBS is defined.
   */
! #if defined (mips) || defined (_AIX)
  #define PROF_FLAG -p
  #else
  #define PROF_FLAG -pg
***************
*** 178,187 ****
   * library.  On most BSD systems, this is -C; on SysV-based systems, it
   * is -o.
   */
! #if defined(mips) && defined(ultrix)
! LINTLIBFLAG=-o
! #else
  LINTLIBFLAG=-C
  #endif
  
  /*
--- 181,190 ----
   * library.  On most BSD systems, this is -C; on SysV-based systems, it
   * is -o.
   */
! #if defined(ibm032) || (defined(vax) && !defined(ultrix))
  LINTLIBFLAG=-C
+ #else
+ LINTLIBFLAG=-o
  #endif
  
  /*
***************
*** 240,246 ****
  
  /* Linker flags for stripping out local symbols in library routines.  */
  LDSTRIPFLAGS= -x -r
! #if defined(_AIX) && defined (i386)
  LDPROFSTRIPFLAGS= $(LDSTRIPFLAGS)
  #else
  LDPROFSTRIPFLAGS= -X -r
--- 243,249 ----
  
  /* Linker flags for stripping out local symbols in library routines.  */
  LDSTRIPFLAGS= -x -r
! #if defined(_AIX)
  LDPROFSTRIPFLAGS= $(LDSTRIPFLAGS)
  #else
  LDPROFSTRIPFLAGS= -X -r
***************
*** 247,253 ****
  #endif
  
  /* Any libraries that will be needed by all program builds.  */
! #if defined(_AIX) && defined(i386)
  GLOBAL_SYSLIBS= -lbsd
  #else
  GLOBAL_SYSLIBS=
--- 250,256 ----
  #endif
  
  /* Any libraries that will be needed by all program builds.  */
! #if defined(_AIX)
  GLOBAL_SYSLIBS= -lbsd
  #else
  GLOBAL_SYSLIBS=
*** /tmp/,RCSt1007580	Wed Mar 20 15:00:11 1991
--- lib/Zinternal.c	Wed Mar 20 14:51:49 1991
***************
*** 837,845 ****
  	return(ZSendPacket(buf, len, wait));
  }
  
! #if (BSD < 43) || defined(STRCASE)
! #ifndef ULTRIX30
! /* Ultrix 3.0 has strcasecmp/strncasecmp */
  #include "strcasecmp.c"
! #endif /* ULTRIX30 */
! #endif /* BSD < 43 */
--- 837,842 ----
  	return(ZSendPacket(buf, len, wait));
  }
  
! #ifdef STRCASE
  #include "strcasecmp.c"
! #endif

home help back first fref pref prev next nref lref last post