FreeBSD support.
This commit is contained in:
parent
90b73f480f
commit
72ea27e43b
2 changed files with 25 additions and 10 deletions
|
@ -42,7 +42,14 @@
|
|||
# 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;
|
||||
|
@ -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