[5760] in Athena Bugs

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

olc changes for PS/2

daemon@ATHENA.MIT.EDU (John Carr)
Fri Aug 17 19:15:22 1990

To: lwvanels@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
Date: Fri, 17 Aug 90 19:15:11 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>


I already sent in a change to clients/lib/init.c

Here is a change to clients/lib/sort.c:

*** sort.c.71R  Mon Jul 16 08:17:14 1990
--- sort.c      Fri Aug 17 18:25:49 1990
***************
*** 79,85 ****
  #define cmp(a,b) ((a)<(b)?-1:((a)==(b)?0:1))
  #define sgn(n) ((n)<0?-1:((n)>0?1:0))
  /* qsort should be persuaded to pass this */
! const static sort_keys *keys;

  #if __STDC__
  static int compare (LIST *first, LIST *second) {
--- 79,85 ----
  #define cmp(a,b) ((a)<(b)?-1:((a)==(b)?0:1))
  #define sgn(n) ((n)<0?-1:((n)>0?1:0))
  /* qsort should be persuaded to pass this */
! static const sort_keys *keys;

  #if __STDC__
  static int compare (LIST *first, LIST *second) {

I am not sure what ANSI has to say about this, but the AIX 1.2
compiler dones't like "const" before "static".

This should be placed in config/ibm.cf:

	#ifdef AIXArchitecture
	#define	RanlibCmd	/bin/true
	#endif

Also, one of these should be done:

	1. add "#define ExtraLoadFlags -lbsd" to this file

	2. add "#define CcCmd <foo>" to this file, where the selected
	   compiler <foo> includes the BSD library

I prefer the latter.  The convention I am using with AIX (both 1.2 and
3.1) is to make a link to the compiler called /bin/acc, which does the
following:

	define __STDC__ (since the compiler is closer to ANSI than the
			default invocation of hc on the RT)

	links -lbsd

	adds -L/usr/athena/lib to the load path

(this means put "#define CcCmd /bin/acc" in ibm.cf).


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