From d76a990dd74a544ab4c390697058ada9dbd9f4f4 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 26 Aug 2003 20:23:58 +0000 Subject: [PATCH] * configure.in: Don't test for labs, memmove or bcopy. * k5-int.h (labs, HAVE_LABS): Never define. * win-mac.h (HAVE_LABS): Don't define. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15796 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 4 ++++ src/include/configure.in | 2 +- src/include/k5-int.h | 6 ------ src/include/win-mac.h | 2 -- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 45d284d24..5502f2e95 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,5 +1,9 @@ 2003-08-26 Ken Raeburn + * configure.in: Don't test for labs, memmove or bcopy. + * k5-int.h (labs, HAVE_LABS): Never define. + * win-mac.h (HAVE_LABS): Don't define. + * configure.in: Check for some C99 headers and types. * fake-addrinfo.h (inline): Supported by Sun Forte Developer 7 diff --git a/src/include/configure.in b/src/include/configure.in index cfca33449..788381342 100644 --- a/src/include/configure.in +++ b/src/include/configure.in @@ -9,7 +9,7 @@ AC_PROG_INSTALL AC_PROG_AWK AC_PROG_LEX AC_C_CONST -AC_CHECK_FUNCS(strdup labs setvbuf memmove bcopy inet_ntoa inet_aton seteuid setresuid setreuid setegid setresgid setregid) +AC_CHECK_FUNCS(strdup setvbuf inet_ntoa inet_aton seteuid setresuid setreuid setegid setresgid setregid) dnl dnl Check what the return types for gethostbyname_r and getservbyname_r are. dnl diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 2be8ce590..ba1674a7e 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -97,7 +97,6 @@ #define INI_FILES "Files" #define INI_KRB_CCACHE "krb5cc" /* Location of the ccache */ #define INI_KRB5_CONF "krb5.ini" /* Location of krb5.conf file */ -#define HAVE_LABS #define ANSI_STDIO #endif @@ -111,7 +110,6 @@ #define SIZEOF_SHORT 2 #define HAVE_SRAND #define NO_PASSWORD -#define HAVE_LABS /*#define ENOMEM -1*/ #define ANSI_STDIO #include @@ -157,10 +155,6 @@ typedef unsigned char u_char; #define O_BINARY 0 #endif -#ifndef HAVE_LABS -#define labs(x) abs(x) -#endif - /* #define KRB5_OLD_CRYPTO is done in krb5.h */ #endif /* KRB5_CONFIG__ */ diff --git a/src/include/win-mac.h b/src/include/win-mac.h index b6cf96dfa..16d1062e8 100644 --- a/src/include/win-mac.h +++ b/src/include/win-mac.h @@ -31,8 +31,6 @@ #include -#define HAVE_LABS - #ifndef KRB5_CALLCONV # define KRB5_CALLCONV __stdcall # define KRB5_CALLCONV_C __cdecl -- 2.26.2