svn commit: r270261 - head/sys/sys

Davide Italiano davide at FreeBSD.org
Thu Aug 21 09:01:43 UTC 2014


Author: davide
Date: Thu Aug 21 09:01:42 2014
New Revision: 270261
URL: http://svnweb.freebsd.org/changeset/base/270261

Log:
  Revert r270227. GCC doesn't like the lack of LL suffix,
  so this makes powerpc build failing.

Modified:
  head/sys/sys/time.h

Modified: head/sys/sys/time.h
==============================================================================
--- head/sys/sys/time.h	Thu Aug 21 08:25:46 2014	(r270260)
+++ head/sys/sys/time.h	Thu Aug 21 09:01:42 2014	(r270261)
@@ -129,7 +129,7 @@ bintime_shift(struct bintime *_bt, int _
 #define	SBT_1MS	(SBT_1S / 1000)
 #define	SBT_1US	(SBT_1S / 1000000)
 #define	SBT_1NS	(SBT_1S / 1000000000)
-#define	SBT_MAX	0x7fffffffffffffff
+#define	SBT_MAX	0x7fffffffffffffffLL
 
 static __inline int
 sbintime_getsec(sbintime_t _sbt)
@@ -184,7 +184,7 @@ timespec2bintime(const struct timespec *
 
 	_bt->sec = _ts->tv_sec;
 	/* 18446744073 = int(2^64 / 1000000000) */
-	_bt->frac = _ts->tv_nsec * (uint64_t)18446744073;
+	_bt->frac = _ts->tv_nsec * (uint64_t)18446744073LL;
 }
 
 static __inline void
@@ -201,7 +201,7 @@ timeval2bintime(const struct timeval *_t
 
 	_bt->sec = _tv->tv_sec;
 	/* 18446744073709 = int(2^64 / 1000000) */
-	_bt->frac = _tv->tv_usec * (uint64_t)18446744073709;
+	_bt->frac = _tv->tv_usec * (uint64_t)18446744073709LL;
 }
 
 static __inline struct timespec


More information about the svn-src-head mailing list