From 72ea27e43b4491677fe3e3c59b914798a4238f94 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 20 Nov 1998 01:03:18 +0000 Subject: [PATCH] FreeBSD support. --- Stripe_w/bands.c | 23 +++++++++++++++-------- Stripe_w/polyvertsex.h | 12 ++++++++++-- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/Stripe_w/bands.c b/Stripe_w/bands.c index 1992795a6..161e8ccde 100644 --- a/Stripe_w/bands.c +++ b/Stripe_w/bands.c @@ -35,15 +35,22 @@ /* TIMING for Windows */ #ifdef WIN32 -#include -#include +# include +# include /* TIMING for UNIX */ #else -#include -#include -#include -extern long times( ); -long elapsed() +# include +# include +# include +# if defined(__FreeBSD__) +# ifndef HZ +# include +# define HZ CLK_TCK +# endif /* HZ */ +# else + extern long times( ); +# endif /* __FreeBSD__ */ + long elapsed() { static long total = 0; long cpu_time, dummy; @@ -55,7 +62,7 @@ long elapsed() total = dummy; return(cpu_time); } -#endif +#endif /* WIN32 */ int norms[STRIP_MAX]; diff --git a/Stripe_w/polyvertsex.h b/Stripe_w/polyvertsex.h index 8e05a7dd3..4c541f7bc 100644 --- a/Stripe_w/polyvertsex.h +++ b/Stripe_w/polyvertsex.h @@ -10,9 +10,17 @@ /* STRIPE: polvertsex.h -----------------------------------------------------------------------*/ -#include "queue.h" -#include +#ifdef HAVE_CONFIG_H +# include +#endif + +#ifdef HAVE_STDLIB_H +# include +#else +# include +#endif +#include "queue.h" /* external functions */ void Start_Vert_Struct(); -- 2.39.5