X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fusleep.c;h=f065729b5b500bd67c84a4eefba13523468fc803;hb=b81f521c5ad7022ac12db18ca8fcdd9fb063831e;hp=706675910e1818736d0b61218427fb98719dc0d4;hpb=df7adbee81405e2849728a24b498ad2117784b1f;p=xscreensaver diff --git a/utils/usleep.c b/utils/usleep.c index 70667591..f065729b 100644 --- a/utils/usleep.c +++ b/utils/usleep.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992, 1996, 1997 +/* xscreensaver, Copyright (c) 1992, 1996, 1997, 2003 * Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its @@ -22,6 +22,10 @@ # include #endif +#ifdef HAVE_UNISTD_H +# include +#endif + #if defined(VMS) # include # include @@ -35,6 +39,8 @@ ERROR, do not include that here #endif +extern void screenhack_usleep (unsigned long usecs); /* suppress warning */ + void screenhack_usleep (unsigned long usecs) {