From: bdemsky Date: Tue, 7 Nov 2006 02:25:28 +0000 (+0000) Subject: add linux support X-Git-Tag: preEdgeChange~756 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c84a70be1761c8fcf9b18660e97ede837804b42d;p=IRC.git add linux support --- diff --git a/Robust/src/Runtime/runtime.c b/Robust/src/Runtime/runtime.c index 971a1829..a977b693 100644 --- a/Robust/src/Runtime/runtime.c +++ b/Robust/src/Runtime/runtime.c @@ -235,8 +235,11 @@ void flagorand(void * ptr, int ormask, int andmask) { /* Handler for signals. The signals catch null pointer errors and arithmatic errors. */ - +#ifdef LINUX +void myhandler(int sig, siginfo_t *info, void *uap) { +#else void myhandler(int sig, struct __siginfo *info, void *uap) { +#endif #ifdef DEBUG printf("sig=%d\n",sig); printf("signal\n"); @@ -328,7 +331,7 @@ void executetasks() { struct timeval timeout={0,0}; fd_set tmpreadfds; int numselect; - FD_COPY(&readfds, &tmpreadfds); + tmpreadfds=readfds; numselect=select(maxreadfd, &tmpreadfds, NULL, NULL, &timeout); if (numselect>0) { /* Process ready fd's */