Use #pragma pop on the Mac to ensure that the krb5_gic_opt_ext
authorTom Yu <tlyu@mit.edu>
Thu, 10 Jul 2008 22:34:21 +0000 (22:34 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 10 Jul 2008 22:34:21 +0000 (22:34 +0000)
structure has the same layout as the public version.

ticket: 6010
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20511 dc483132-0cff-0310-8789-dd5450dbe970

src/include/k5-int.h

index 3763399d9716fa607aec529cbc2a8b836a0bd515..0118015a17f98b54b08deee6c7446e567a9ac23d 100644 (file)
@@ -982,6 +982,10 @@ typedef struct _krb5_gic_opt_private {
     krb5_gic_opt_pa_data *preauth_data;
 } krb5_gic_opt_private;
 
+#if TARGET_OS_MAC
+#    pragma pack(push,2)
+#endif
+
 typedef struct _krb5_gic_opt_ext {
     krb5_flags flags;
     krb5_deltat tkt_life;
@@ -1002,6 +1006,10 @@ typedef struct _krb5_gic_opt_ext {
     krb5_gic_opt_private *opt_private;
 } krb5_gic_opt_ext;
 
+#if TARGET_OS_MAC
+#    pragma pack(pop)
+#endif
+
 krb5_error_code
 krb5int_gic_opt_to_opte(krb5_context context,
                         krb5_get_init_creds_opt *opt,