ports/benchmarks/xdd/files/patch-timeserver.c
Renato Botelho 0b6df8f20a Xdd is a tool for measuring and characterizing disk subsystem I/O
on single systems and clusters of systems. It is a command-line
based tool that grew out of the UNIX world and has been ported to
run in Windows environments as well. It is designed to provide
consistent and reproducible performance measurements of disk I/O
traffic. There are three basic components to xdd that include the
xdd program itself, a timeserver program, and a gettime program.
The timeserver and gettime programs are used to synchronize the
clocks of xdd programs simultaneously running across multiple
computer systems.

WWW: http://www.ioperformance.com/

PR:		ports/100833
Submitted by:	Gerhard Gonter <g.gonter at ieee.org>
2006-07-26 15:33:21 +00:00

32 lines
1 KiB
C

--- timeserver.c.orig Mon May 29 04:25:26 2006
+++ timeserver.c Mon May 29 04:25:56 2006
@@ -29,9 +29,9 @@
#include <stdarg.h> /* variable arguments stuff */
#include <string.h> /* strrchr(), strerror() */
#include <errno.h> /* errno stuff */
-#if (IRIX || SOLARIS || AIX || HPUX || LINUX || OSX)
+#if (IRIX || SOLARIS || AIX || HPUX || LINUX || OSX || FreeBSD)
#include <unistd.h>
-#if !(SOLARIS || AIX || HPUX || LINUX || OSX)
+#if !(SOLARIS || AIX || HPUX || LINUX || OSX || FreeBSD)
#include <bstring.h>
#endif
#include <limits.h> /* USHRT_MAX */
@@ -57,7 +57,7 @@
/* ----- */
/* Types */
/* ----- */
-#if !(IRIX || SOLARIS || AIX || HPUX || LINUX || OSX)
+#if !(IRIX || SOLARIS || AIX || HPUX || LINUX || OSX || FreeBSD)
/* SGI defines these in <netinet/in.h> */
typedef unsigned long in_addr_t; /* An IP number */
typedef unsigned short in_port_t; /* A port number */
@@ -231,7 +231,7 @@
#if (AIX)
nd = sd + 1;
#endif
-#if (SOLARIS || HPUX || OSX)
+#if (SOLARIS || HPUX || OSX || FreeBSD)
nd = FD_SETSIZE;
#endif
for (;;) {