#define KMOD_MAX_NAME 64
-#pragma pack(4)
+#if __DARWIN_ALIGN_POWER
+#pragma options align=power
+#endif
/* LP64todo - not 64-bit safe */
typedef struct kmod_reference {
struct kmod_info *info;
} kmod_reference_t;
-#pragma pack()
+#if __DARWIN_ALIGN_POWER
+#pragma options align=reset
+#endif
/**************************************************************************************/
/* warning any changes to this structure affect the following macros. */
typedef kern_return_t kmod_start_func_t(struct kmod_info *ki, void *data);
typedef kern_return_t kmod_stop_func_t(struct kmod_info *ki, void *data);
-#pragma pack(4)
+#if __DARWIN_ALIGN_POWER
+#pragma options align=power
+#endif
/* LP64todo - not 64-bit safe */
kmod_stop_func_t *stop;
} kmod_info_t;
-#pragma pack()
+#if __DARWIN_ALIGN_POWER
+#pragma options align=reset
+#endif
typedef kmod_info_t *kmod_info_array_t;