Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
e5975a5f
Commit
e5975a5f
authored
Sep 19, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OS/X compilation for good.
Fixes #1022
parent
652b2f61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
cache_pool.c
bin/varnishd/cache_pool.c
+25
-2
No files found.
bin/varnishd/cache_pool.c
View file @
e5975a5f
...
...
@@ -59,9 +59,32 @@
#include "stevedore.h"
#include "hash_slinger.h"
/*--------------------------------------------------------------------
* MAC OS/X is incredibly moronic when it comes to time and such...
*/
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
/* OS/X is silly */
#endif
#define CLOCK_MONOTONIC 0
static
int
clock_gettime
(
int
foo
,
struct
timespec
*
ts
)
{
struct
timeval
tv
;
gettimeofday
(
&
tv
,
NULL
);
ts
->
tv_sec
=
tv
.
tv_sec
;
ts
->
tv_nsec
=
tv
.
tv_usec
*
1000
;
return
(
0
);
}
static
int
pthread_condattr_setclock
(
pthread_condattr_t
*
attr
,
int
foo
)
{
(
void
)
attr
;
(
void
)
foo
;
return
(
0
);
}
#endif
/* !CLOCK_MONOTONIC */
static
void
*
waiter_priv
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment