gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libbase getclocktime.hpp


From: Dossy Shiobara
Subject: [Gnash-commit] gnash/libbase getclocktime.hpp
Date: Sun, 30 Mar 2008 18:24:31 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Dossy Shiobara <dossy>  08/03/30 18:24:31

Modified files:
        libbase        : getclocktime.hpp 

Log message:
        Win32 has no "struct timespec" so we provide one.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/getclocktime.hpp?cvsroot=gnash&r1=1.4&r2=1.5

Patches:
Index: getclocktime.hpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/getclocktime.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- getclocktime.hpp    29 Mar 2008 03:12:45 -0000      1.4
+++ getclocktime.hpp    30 Mar 2008 18:24:31 -0000      1.5
@@ -29,6 +29,13 @@
 
 #include <sys/time.h>
 
+#ifdef _WIN32
+struct timespec {
+       time_t  tv_sec;         /* seconds */
+       long    tv_nsec;        /* nanoseconds */
+};
+#endif
+
 #define CLOCK_REALTIME 0 /* Dummy */
 
 static int clock_gettime(int, struct timespec *tp) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]