rts: Fix MachO from D3527
authorBen Gamari <ben@smart-cactus.org>
Thu, 4 May 2017 19:23:46 +0000 (15:23 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 4 May 2017 19:24:46 +0000 (15:24 -0400)
We gave up on typedefing {Section,ObjectCode}FormatInfo structs but
MachO never got the memo.

rts/linker/MachO.c

index 55ca853..f8b665a 100644 (file)
@@ -99,9 +99,9 @@ bool ocMprotect_MachO( ObjectCode *oc );
 void
 ocInit_MachO(ObjectCode * oc)
 {
-    oc->info = (ObjectCodeFormatInfo*)stgCallocBytes(
-                1, sizeof(ObjectCodeFormatInfo),
-                "ocInit_MachO(ObjectCodeFormatInfo)");
+    oc->info = (struct ObjectCodeFormatInfo*)stgCallocBytes(
+                1, sizeof(struct ObjectCodeFormatInfo),
+                "ocInit_MachO(struct ObjectCodeFormatInfo)");
     oc->info->header  = (MachOHeader *) oc->image;
     oc->info->symCmd  = NULL;
     oc->info->segCmd  = NULL;