FreeBSD support.
This commit is contained in:
parent
90b73f480f
commit
72ea27e43b
2 changed files with 25 additions and 10 deletions
|
@ -35,15 +35,22 @@
|
|||
|
||||
/* TIMING for Windows */
|
||||
#ifdef WIN32
|
||||
#include <sys/timeb.h>
|
||||
#include <time.h>
|
||||
# include <sys/timeb.h>
|
||||
# include <time.h>
|
||||
/* TIMING for UNIX */
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/times.h>
|
||||
extern long times( );
|
||||
long elapsed()
|
||||
# include <sys/types.h>
|
||||
# include <sys/param.h>
|
||||
# include <sys/times.h>
|
||||
# if defined(__FreeBSD__)
|
||||
# ifndef HZ
|
||||
# include <time.h>
|
||||
# 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];
|
||||
|
|
|
@ -10,9 +10,17 @@
|
|||
/* STRIPE: polvertsex.h
|
||||
-----------------------------------------------------------------------*/
|
||||
|
||||
#include "queue.h"
|
||||
#include <malloc.h>
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#else
|
||||
# include <malloc.h>
|
||||
#endif
|
||||
|
||||
#include "queue.h"
|
||||
|
||||
/* external functions */
|
||||
void Start_Vert_Struct();
|
||||
|
|
Loading…
Reference in a new issue