freebsd-ports/benchmarks/xdd/files/patch-misc.h
Martin Wilke 4ebca0074e - Update to 6.5
PR:             110377
Submitted by:   Gerhard Gonter <g.gonter@ieee.org> (maintainer)
2007-03-16 20:58:31 +00:00

29 lines
1.1 KiB
C

--- misc.h.orig Fri Mar 16 06:42:14 2007
+++ misc.h Fri Mar 16 06:43:02 2007
@@ -35,7 +35,7 @@
/* -------- */
/* Includes */
/* -------- */
-#if (LINUX || AIX || IRIX || SOLARIS || HPUX || ALTIX || OSX)
+#if (LINUX || AIX || IRIX || SOLARIS || HPUX || ALTIX || OSX || FreeBSD)
#ifndef NDEBUG /* These are only needed if Assert() expands to something */
#include <stdio.h> /* fprintf(), stderr */
#include <unistd.h> /* pause() */
@@ -60,7 +60,7 @@
/* --------- */
/* Constants */
/* --------- */
-#if (LINUX || AIX || IRIX || SOLARIS || HPUX || ALTIX || OSX)
+#if (LINUX || AIX || IRIX || SOLARIS || HPUX || ALTIX || OSX || FreeBSD)
#define MILLION 1000000LL /* 10^6, as opposed to 2^20 */
#define BILLION 1000000000LL /* 10^9, as opposed to 2^30 */
#define TRILLION 1000000000000LL /* 10^12, as opposed to 2^40 */
@@ -77,7 +77,7 @@
#ifndef LLONG_MIN
#define LLONG_MIN (-LLONG_MAX - 1LL)
#endif
-#if (LINUX || AIX || IRIX || SOLARIS || HPUX || ALTIX || OSX)
+#if (LINUX || AIX || IRIX || SOLARIS || HPUX || ALTIX || OSX || FreeBSD)
#ifndef LONGLONG_MIN
#define LONGLONG_MIN LLONG_MIN
#endif