wez             Sat Nov 29 17:59:34 2003 EDT

  Modified files:              
    /php-src/win32      time.c 
  Log:
  Fix build for new usleep implementation.
  NB: we now depend on windows 98 and later;
  windows 95 does not have these timing functions.
  
Index: php-src/win32/time.c
diff -u php-src/win32/time.c:1.7 php-src/win32/time.c:1.8
--- php-src/win32/time.c:1.7    Sat Nov 29 17:48:42 2003
+++ php-src/win32/time.c        Sat Nov 29 17:59:33 2003
@@ -11,7 +11,7 @@
  *
  *****************************************************************************/
 
-/* $Id: time.c,v 1.7 2003/11/29 22:48:42 wez Exp $ */
+/* $Id: time.c,v 1.8 2003/11/29 22:59:33 wez Exp $ */
 
  /**
   *
@@ -22,9 +22,14 @@
 
 /* Include stuff ************************************************************ */
 
+/* this allows the use of the WaitableTimer functions.
+ * For win98 and later */
+#define _WIN32_WINNT 0x400
+
 #include "time.h"
 #include "unistd.h"
 #include "signal.h"
+#include <windows.h>
 #include <winbase.h>
 #include <mmsystem.h>
 #include <errno.h>
@@ -131,7 +136,7 @@
        HANDLE timer;
        LARGE_INTEGER due;
 
-       due.QuadPart = -useconds * 1000;
+       due.QuadPart = -1000 * useconds;
        timer = CreateWaitableTimer(NULL, TRUE, NULL);
 
        SetWaitableTimer(timer, &due, 0, NULL, NULL, 0);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to