diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-07-15 18:12:36 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-07-18 17:13:36 -0700 |
commit | 6572d75b102b463c974a5969997fc646d36a1797 (patch) | |
tree | b540978a61bf4cca9591035dea26a5f6596e286d /xset.c | |
parent | 9c55efa1b36173aa7d768a55990ed7fe2c4f6034 (diff) |
Remove direct call to Solaris nanosleep system call
Attempted to workaround nanosleep() being only in POSIX realtime
extensions library, but both usleep() & nanosleep() are in libc now,
so not useful anymore, nor was it ever officially supported.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'xset.c')
-rw-r--r-- | xset.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -78,11 +78,6 @@ in this Software without prior written authorization from The Open Group. # endif # undef BOOL # endif -# ifndef HAVE_USLEEP -# if defined(SVR4) && defined(sun) -# include <sys/syscall.h> -# endif -# endif #endif /* DPMSExtension */ #ifdef XF86MISC @@ -574,18 +569,6 @@ main(int argc, char *argv[]) # define Usleep(us) usleep((us)) #else #ifdef SVR4 -# ifdef sun -/* Anything to avoid linking with -lposix4 */ -# define Usleep(us) { \ - struct ts { \ - long tv_sec; \ - long tv_nsec; \ - } req; \ - req.tv_sec = 0; \ - req.tv_nsec = (us) * 1000;\ - syscall(SYS_nanosleep, &req, NULL); \ - } -# endif # ifdef sgi # define Usleep(us) sginap((us) / 1000) # endif |