From 0bb1ff71d650bbd8d8bdb12432988fd01a38edef Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Mon, 23 Dec 2002 08:50:05 +0000 Subject: [PATCH] fix compile error on IRIX --- ext/mime_magic/mime_magic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c index bdb1dab794c..86c650c699f 100644 --- a/ext/mime_magic/mime_magic.c +++ b/ext/mime_magic/mime_magic.c @@ -358,7 +358,7 @@ static int apprentice(void) fname = conf->magicfile; /* todo cwd? */ f = fopen(fname, "rb"); if (f == NULL) { - (int) conf->magic = -1; + *(int *)&conf->magic = -1; return -1; }