summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2002-06-15 03:13:57 +0000
committerTom Yu <tlyu@mit.edu>2002-06-15 03:13:57 +0000
commit5e8bc3cf754c28ef27197343cec81f23e69a1ff5 (patch)
tree7876268dc97717023a46ba87b8aae4ab6d6174e0 /src/include
parentfa4817162411d18b9d95a17a5609e1439fcf14b7 (diff)
downloadkrb5-5e8bc3cf754c28ef27197343cec81f23e69a1ff5.tar.gz
krb5-5e8bc3cf754c28ef27197343cec81f23e69a1ff5.tar.xz
krb5-5e8bc3cf754c28ef27197343cec81f23e69a1ff5.zip
* k5-int.h: Added krb5_kt_dfl_ops for KRB5_KEYTAB_ACCESSOR_FUNCTIONS
* k5-int.h: Removed conditionals now defined in prefix files and updated header paths * k5-int.h: Rearranged the #ifdef macintosh section to work on Mac OS 9 and X * k5-int.h: Updated Mac OS #defines and #includes for new header layout and Mac OS X frameworks [pullups from 1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14512 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ChangeLog19
-rw-r--r--src/include/k5-int.h28
2 files changed, 32 insertions, 15 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog
index 750d8afcc..8a8262223 100644
--- a/src/include/ChangeLog
+++ b/src/include/ChangeLog
@@ -1,3 +1,22 @@
+2002-06-14 Alexandra Ellwood <lxs@mit.edu>
+
+ * k5-int.h: Added krb5_kt_dfl_ops for KRB5_KEYTAB_ACCESSOR_FUNCTIONS
+
+ * k5-int.h: Removed conditionals now defined in prefix files
+ and updated header paths
+
+ [pullups from 1-2-2-branch]
+
+2002-06-14 Miro Jurisic <meeroh@mit.edu>
+
+ * k5-int.h: Rearranged the #ifdef macintosh section to
+ work on Mac OS 9 and X
+
+ * k5-int.h: Updated Mac OS #defines
+ and #includes for new header layout and Mac OS X frameworks
+
+ [pullups from 1-2-2-branch]
+
2002-06-14 Tom Yu <tlyu@mit.edu>
* krb5.hin: Fix BEGIN_DECLS conditional.
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 7ec32d151..8227c5285 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -89,14 +89,9 @@
* Machine-type definitions: PC Clone 386 running Microloss Windows
*/
-#if defined(_WIN32) || defined(macintosh)
+#if defined(_MSDOS) || defined(_WIN32)
#include "win-mac.h"
-#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
-#pragma import on
-#endif
-#endif
-#if defined(_WIN32)
/* Kerberos Windows initialization file */
#define KERBEROS_INI "kerberos.ini"
#define INI_FILES "Files"
@@ -106,10 +101,12 @@
#define ANSI_STDIO
#endif
-
-#ifndef macintosh
-#if defined(__MWERKS__) || defined(applec) || defined(THINK_C)
+/* Note, this may shoot us in the foot if we switch to CW compilers for Mach-o builds */
+#if !defined(macintosh) && (defined(__MWERKS__) || defined(applec) || defined(THINK_C))
#define macintosh
+#endif
+
+#ifdef macintosh
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2
#define HAVE_SRAND
@@ -117,16 +114,12 @@
#define HAVE_LABS
/*#define ENOMEM -1*/
#define ANSI_STDIO
-#ifndef _SIZET
-typedef unsigned int size_t;
-#define _SIZET
-#endif
+#include <size_t.h>
#include <unix.h>
#include <ctype.h>
-#endif
+#include <fcntl.h>
#endif
-
#ifndef KRB5_AUTOCONF__
#define KRB5_AUTOCONF__
#include "autoconf.h"
@@ -980,7 +973,12 @@ void KRB5_CALLCONV krb5_free_pa_enc_ts
(krb5_context, krb5_pa_enc_ts *);
/* #include "krb5/wordsize.h" -- comes in through base-defs.h. */
+#if TARGET_OS_MAC
+#include <Kerberos/profile.h>
+#include <Kerberos/com_err.h> /* Not included by Kerberos/profile.h */
+#else
#include "profile.h"
+#endif
struct _krb5_context {
krb5_magic magic;