- Fix build with sparc64 [1]

Submitted by:	pointyhat via kris
                Mike Durian <durian@shadetreesoftware.com> (maintainer) [1]
This commit is contained in:
Martin Wilke 2007-04-12 08:40:52 +00:00
parent ef544f472a
commit b5d8bc54f5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189841

View File

@ -0,0 +1,11 @@
--- src/os/OsStunQueryAgent.cpp.orig Wed Apr 11 17:12:46 2007
+++ src/os/OsStunQueryAgent.cpp Wed Apr 11 17:13:45 2007
@@ -841,7 +841,7 @@
tick |= lowtick;
#elif defined(__GNUC__) && ( defined(__i686__) || defined(__i386__) )
asm("rdtsc" : "=A" (tick));
-#elif defined (__SUNPRO_CC) || defined( __sparc__ )
+#elif defined (__SUNPRO_CC) || (defined( __sparc__ ) && !defined(__FreeBSD__))
tick = gethrtime();
#elif defined(__pingtel_on_posix__) || defined(_VXWORKS)
tick = getpid();