From ad3c3b82b40bfe8bb182a8bbbf6c251e277bc96f Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Wed, 2 Dec 2015 20:54:19 +0100 Subject: [PATCH] NXGetLocalArchInfo() returns a const object (which is OK!), yet some Apple code modifies the returned object -> fix --- src/libsystem/libmacho/arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystem/libmacho/arch.c b/src/libsystem/libmacho/arch.c index c1293eb78..b60b9d517 100644 --- a/src/libsystem/libmacho/arch.c +++ b/src/libsystem/libmacho/arch.c @@ -56,7 +56,7 @@ /* The array of all currently know architecture flags (terminated with an entry * with all zeros). Pointer to this returned with NXGetAllArchInfos(). */ -static const NXArchInfo ArchInfoTable[] = { +static /* const */ NXArchInfo ArchInfoTable[] = { /* architecture families */ {"hppa", CPU_TYPE_HPPA, CPU_SUBTYPE_HPPA_ALL, NX_BigEndian, "HP-PA"}, -- 2.51.2