Ver código fonte

2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Defined struct timespec if it is not available.
	* src/a2time.h
Tatsuhiro Tsujikawa 15 anos atrás
pai
commit
a605048900
2 arquivos alterados com 6 adições e 1 exclusões
  1. 5 0
      ChangeLog
  2. 1 1
      src/a2time.h

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2010-04-12  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Defined struct timespec if it is not available.
+	* src/a2time.h
+
 2010-04-12  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Added missing serialize_session.meta4 to EXTRA_DIST

+ 1 - 1
src/a2time.h

@@ -65,7 +65,7 @@
 # define CLOCK_MONOTONIC 0
 #endif // !CLOCK_MONOTONIC
 #ifndef HAVE_STRUCT_TIMESPEC
-# define timespec int
+struct timespec { time_t tv_sec; long tv_nsec; };
 #endif // !HAVE_STRUCT_TIMESPEC
 #ifndef HAVE_CLOCK_GETTIME
 # define clock_gettime(ID, TP) (-1)