summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-08-11 17:55:57 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2016-08-11 17:55:57 (GMT)
commitc80551b64b57b6200bd0ea012dd14118725ad64d (patch)
tree4209017f7c5835957943f6cf4f71a6ba421a551e
parent5f65b1caa705f07a0efbeb9cebcfc27800525a7e (diff)
downloadnetsurf-c80551b64b57b6200bd0ea012dd14118725ad64d.tar.gz
netsurf-c80551b64b57b6200bd0ea012dd14118725ad64d.tar.bz2
Fix OS3 build
-rw-r--r--frontends/amiga/schedule.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontends/amiga/schedule.c b/frontends/amiga/schedule.c
index daf4aa0..707d7bb 100644
--- a/frontends/amiga/schedule.c
+++ b/frontends/amiga/schedule.c
@@ -45,6 +45,8 @@ static struct nscallback *tioreq;
struct Device *TimerBase;
#ifdef __amigaos4__
struct TimerIFace *ITimer;
+#else
+static struct MsgPort *schedule_msgport = NULL;
#endif
static PblHeap *schedule_list;
@@ -290,6 +292,9 @@ static void ami_schedule_close_timer(void)
nserror ami_schedule_create(struct MsgPort *msgport)
{
ami_schedule_open_timer(msgport);
+#ifndef __amigaos4__
+ schedule_msgport = msgport;
+#endif
schedule_list = pblHeapNew();
if(schedule_list == PBL_ERROR_OUT_OF_MEMORY) return NSERROR_NOMEM;
@@ -328,7 +333,7 @@ nserror ami_schedule(int t, void (*callback)(void *p), void *p)
ASOIOR_Duplicate, tioreq,
TAG_DONE);
#else
- nscb = (struct nscallback *)CreateIORequest(msgport, sizeof(struct nscallback));
+ nscb = (struct nscallback *)CreateIORequest(schedule_msgport, sizeof(struct nscallback));
*nscb = *tioreq;
#endif
if(!nscb) return NSERROR_NOMEM;