X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fusleep.c;h=f065729b5b500bd67c84a4eefba13523468fc803;hb=dba664f31aa87285db4d76cf8c5e66335299703a;hp=04a17aa788d846908078ba2f8c4bdfd2569cb932;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/utils/usleep.c b/utils/usleep.c index 04a17aa7..f065729b 100644 --- a/utils/usleep.c +++ b/utils/usleep.c @@ -1,5 +1,5 @@ -/* xscreensaver, Copyright (c) 1992, 1996, 1997 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1992, 1996, 1997, 2003 + * 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 @@ -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) {