Library was not compiling on FreeBSD 7. Code now no longer uses

ftime(), using gettimeofday() instead. Thanks to Josh Carroll.


git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@270 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez
2007-12-17 01:15:53 +00:00
parent 8faf828b50
commit 9bfac585af
5 changed files with 49 additions and 32 deletions

View File

@@ -83,12 +83,11 @@ typedef enum priority {LOW_PRIORITY,
#endif
#include "LinkedList.h"
#include <sys/timeb.h>
#include <sys/time.h> /* for gettimeofday() */
#include "FreeList.h"
#include "ithread.h"
#include <errno.h>
#include <sys/timeb.h>
#define EXPORT
typedef int PolicyType;
#define DEFAULT_POLICY SCHED_OTHER
@@ -144,7 +143,7 @@ typedef struct THREADPOOLJOB
start_routine func;
void *arg;
free_routine free_func;
struct timeb requestTime;
struct timeval requestTime;
int priority;
int jobId;
} ThreadPoolJob;