components/cyrus-sasl/patches/103-remove-ifdef-sun-gethostname.patch
author Jan Parcel <jan.parcel@oracle.com>
Tue, 03 Nov 2015 14:27:41 -0800
changeset 5055 9daf220c1a9a
permissions -rw-r--r--
PSARC/2015/194 libsasl ON to Userland migration and update 20855050 Update libsasl 2.1.15 to 2.1.26 and migrate to Userland consolidation 15242150 SUNBT6211461 SASL library missing extras 20544079 sasl install dir for plugins should be separately configurable 20544093 ifdef sun for gethostname in saslutil.c is obsolete 20544122 libtool.m4 overrides configuration for --no-verify 20544160 incorrect function definition for do_request in ipc_doors.c 20544105 sasl adjustment for location of gssapi.h incorrectly implemented 21058782 CMU cyrus-sasl missing man pages that we require 21099377 Moving to autotools 1.15 breaks cmu cyrus-sasl build 21131962 libsasl mv to Userland means subversion requires system/library/security/libsasl 22052798 openldap slapd refuses to run if libsasl updated unless openldap recompiled

Developed in-house at Oracle 
ifdef sun for gethostname in saslutil.c is obsolete
Intended to go upstream

diff -ru old/lib/saslutil.c new/lib/saslutil.c
--- old/lib/saslutil.c	2012-10-12 07:05:48.000000000 -0700
+++ new/lib/saslutil.c	2014-09-15 17:16:31.437610001 -0700
@@ -80,11 +80,6 @@
  * sasl_erasebuffer
  */
 
-#ifdef sun
-/* gotta define gethostname ourselves on suns */
-extern int gethostname(char *, int);
-#endif
-
 char *encode_table;
 char *decode_table;