diff --git a/configure.in b/configure.in index f6b89d995cf..15acb4aa8ea 100644 --- a/configure.in +++ b/configure.in @@ -1775,7 +1775,7 @@ dnl Checks for library functions. dnl ======================================================== AC_PROG_GCC_TRADITIONAL AC_FUNC_MEMCMP -AC_CHECK_FUNCS(random qsort strerror lchown fchmod snprintf localtime_r statvfs usleep) +AC_CHECK_FUNCS(random qsort strerror lchown fchmod snprintf localtime_r statvfs) AC_MSG_CHECKING(how to call gettimeofday) AC_CACHE_VAL(ac_cv_gettimeofday_args, diff --git a/widget/src/gtk/nsGtkUtils.cpp b/widget/src/gtk/nsGtkUtils.cpp index 79b830850f8..05e93012297 100644 --- a/widget/src/gtk/nsGtkUtils.cpp +++ b/widget/src/gtk/nsGtkUtils.cpp @@ -24,11 +24,7 @@ #include #include -#ifndef HAVE_USLEEP -#include -#endif - -#if defined(__osf__) && defined(HAVE_USLEEP) && !defined(_XOPEN_SOURCE_EXTENDED) +#if defined(__osf__) && !defined(_XOPEN_SOURCE_EXTENDED) /* ** DEC's compiler requires _XOPEN_SOURCE_EXTENDED to be defined in ** order for it to see the prototype for usleep in unistd.h, but if @@ -151,9 +147,6 @@ nsGtkUtils::gdk_window_flash(GdkWindow * aGdkWindow, int root_y; unsigned int i; XGCValues gcv; -#ifndef HAVE_USLEEP - struct timeval tv; -#endif display = GDK_WINDOW_XDISPLAY(aGdkWindow); @@ -219,13 +212,7 @@ nsGtkUtils::gdk_window_flash(GdkWindow * aGdkWindow, XSync(display, False); -#ifdef HAVE_USLEEP usleep(aInterval); -#else - tv.tv_sec = aInterval / 100000; - tv.tv_usec = aInterval % 100000; - (void)select(0, NULL, NULL, NULL, &tv); -#endif } diff --git a/widget/src/xlib/nsXUtils.cpp b/widget/src/xlib/nsXUtils.cpp index 25ff177e2fe..14811b74184 100644 --- a/widget/src/xlib/nsXUtils.cpp +++ b/widget/src/xlib/nsXUtils.cpp @@ -21,7 +21,7 @@ #include #include -#if defined(__osf__) && defined(HAVE_USLEEP) && !defined(_XOPEN_SOURCE_EXTENDED) +#if defined(__osf__) && !defined(_XOPEN_SOURCE_EXTENDED) /* ** DEC's compiler requires _XOPEN_SOURCE_EXTENDED to be defined in ** order for it to see the prototype for usleep in unistd.h, but if @@ -52,9 +52,6 @@ nsXUtils::XFlashWindow(Display * aDisplay, int root_y; unsigned int i; XGCValues gcv; -#ifndef HAVE_USLEEP - struct timeval tv; -#endif XGetGeometry(aDisplay, aWindow, @@ -116,13 +113,7 @@ nsXUtils::XFlashWindow(Display * aDisplay, XSync(aDisplay, False); -#ifdef HAVE_USLEEP usleep(aInterval); -#else - tv.tv_sec = aInterval / 100000; - tv.tv_usec = aInterval % 100000; - (void)select(0, NULL, NULL, NULL, &tv); -#endif }