X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Flib_napms.c;fp=ncurses%2Flib_napms.c;h=a85304bf1cb687a455c2286c6e19d101a26340ac;hp=eec7b0a214796a9b747a7dca0d79fab5ae6af9a4;hb=refs%2Ftags%2Fv5.0;hpb=661078ddbde3ce0f3b06e95642fbb9b5fef7dca1 diff --git a/ncurses/lib_napms.c b/ncurses/tinfo/lib_napms.c similarity index 95% rename from ncurses/lib_napms.c rename to ncurses/tinfo/lib_napms.c index eec7b0a2..a85304bf 100644 --- a/ncurses/lib_napms.c +++ b/ncurses/tinfo/lib_napms.c @@ -41,7 +41,9 @@ #include -#if USE_FUNC_POLL +#if HAVE_NANOSLEEP +#include +#elif USE_FUNC_POLL #include #include #if HAVE_SYS_TIME_H @@ -54,9 +56,9 @@ #if HAVE_SYS_SELECT_H #include #endif -#endif +#endif -MODULE_ID("$Id: lib_napms.c,v 1.4 1998/02/13 10:24:54 jbuhler Exp $") +MODULE_ID("$Id: lib_napms.c,v 1.6 1999/10/21 23:01:41 tom Exp $") int napms(int ms) { @@ -69,8 +71,6 @@ int napms(int ms) ts.tv_nsec = (ms % 1000) * 1000000; nanosleep(&ts, NULL); } -#elif HAVE_USLEEP - usleep(1000*(unsigned)ms); #elif USE_FUNC_POLL { struct pollfd fds[1];