[1107] in Kerberos-V5-bugs

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

last night changes and labs definition

daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Tue Feb 28 10:24:02 1995

From: epeisach@MIT.EDU
Date: Tue, 28 Feb 1995 10:23:26 -0500
To: krb5-bugs@MIT.EDU


labs was defined in k5-config.h. On machines which have labs and labs !=
abs, this can cause a conflict for stdlib.h. The following fix deals
with this by first checking if labs is defined, and if so, does
nothing...

The other possibility is to do this in the lib/krb5/krb directory, but
that would involve a large number of files...

	Ezra

===================================================================
RCS file: /mit/krb5/.cvsroot/src/acconfig.h,v
retrieving revision 5.4
diff -c -r5.4 acconfig.h
*** acconfig.h	1995/02/15 02:51:37	5.4
--- acconfig.h	1995/02/28 15:09:25
***************
*** 9,14 ****
--- 9,15 ----
  #undef HAS_ANSI_VOLATILE
  #undef HAS_STDLIB_H
  #undef HAS_STRDUP
+ #undef HAS_LABS
  #undef HAS_SYS_FILE_H
  #undef HAS_SYS_PARAM_H
  #undef HAS_VOID_TYPE
===================================================================
RCS file: /mit/krb5/.cvsroot/src/include/krb5/configure.in,v
retrieving revision 1.21
diff -c -r1.21 configure.in
*** configure.in	1995/02/28 10:46:25	1.21
--- configure.in	1995/02/28 15:08:52
***************
*** 8,13 ****
--- 8,14 ----
  AC_PROG_INSTALL
  HAVE_YYLINENO
  AC_FUNC_CHECK(strdup,AC_DEFINE(HAS_STRDUP))
+ AC_FUNC_CHECK(labs,AC_DEFINE(HAS_LABS))
  CHECK_DIRENT
  CHECK_FCNTL
  CHECK_WAIT_TYPE
===================================================================
RCS file: /mit/krb5/.cvsroot/src/include/krb5/k5-config.h,v
retrieving revision 5.1
diff -c -r5.1 k5-config.h
*** k5-config.h	1995/02/28 07:58:32	5.1
--- k5-config.h	1995/02/28 15:09:46
***************
*** 129,135 ****
--- 129,137 ----
  #define INTERFACE
  #define INTERFACE_C
  #define FAR
+ #ifndef HAS_LABS
  #define labs(x) abs(x)
+ #endif
  
  #endif /* __windows__ */
  

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