X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fflame.c;h=3f98e3e3036efbf670f287091a1776a9bbb611ef;hb=ccbc9f87eb59497b23bd0424ee1ed20ad7c7db54;hp=e010b9df226bce0fc95862410627bb28f1c952d1;hpb=6edc84f12f15860a71430c45e8392a5e4ef8203c;p=xscreensaver diff --git a/hacks/flame.c b/hacks/flame.c index e010b9df..3f98e3e3 100644 --- a/hacks/flame.c +++ b/hacks/flame.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1993 Jamie Zawinski +/* xscreensaver, Copyright (c) 1993, 1995 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -48,8 +48,6 @@ #include "screenhack.h" -/*#include */ - #define POINT_BUFFER_SIZE 10 #define MAXLEV 4 @@ -248,6 +246,23 @@ flame (dpy, window) if (delay) usleep (delay); } + +#ifdef __hpux +/* I don't understand why this is necessary, but I'm told that this program + does nothing at all on HP-sUX without it. + */ +#undef random +#undef srandom +#include +int matherr(x) + register struct exception *x; +{ + if (x->type == PLOSS) return 1; + else return 0; +} +#endif /* __hpux */ + + char *progclass = "Flame";