src/share/native/sun/security/jgss/wrapper/gssapi.h
Print this page
rev 6670 : 8010192: Enable native JGSS provider on Mac
@@ -30,14 +30,25 @@
#define GSS_SIZEOF_SHORT 2
#ifndef _GSSAPI_H_
#define _GSSAPI_H_
+#if defined(__MACH__) && defined(__APPLE__)
+# include <TargetConditionals.h>
+# if TARGET_RT_MAC_CFM
+# error "Use KfM 4.0 SDK headers for CFM compilation."
+# endif
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
+#if TARGET_OS_MAC
+# pragma pack(push,2)
+#endif
+
/*
* First, include stddef.h to get size_t defined.
*/
#include <stddef.h>
@@ -669,10 +680,14 @@
const gss_name_t, /* input_name */
const gss_OID, /* mech_type */
gss_name_t * /* output_name */
);
+#if TARGET_OS_MAC
+# pragma pack(pop)
+#endif
+
#ifdef __cplusplus
}
#endif
#endif /* _GSSAPI_H_ */