Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
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
Show 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 @@
...
@@ -59,9 +59,32 @@
#include "stevedore.h"
#include "stevedore.h"
#include "hash_slinger.h"
#include "hash_slinger.h"
/*--------------------------------------------------------------------
* MAC OS/X is incredibly moronic when it comes to time and such...
*/
#ifndef CLOCK_MONOTONIC
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
/* OS/X is silly */
#define CLOCK_MONOTONIC 0
#endif
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
;
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