SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
24
x11/vlc/patches/patch-src_posix_thread_c
Normal file
24
x11/vlc/patches/patch-src_posix_thread_c
Normal file
|
@ -0,0 +1,24 @@
|
|||
Make use of clock_gettime() on OpenBSD. Until we have per-process
|
||||
timers and can enable _POSIX_TIMERS in unistd.h.
|
||||
|
||||
Index: src/posix/thread.c
|
||||
--- src/posix/thread.c.orig
|
||||
+++ src/posix/thread.c
|
||||
@@ -62,7 +62,7 @@
|
||||
# define _POSIX_MONOTONIC_CLOCK (-1)
|
||||
#endif
|
||||
|
||||
-#if (_POSIX_TIMERS > 0)
|
||||
+#if (_POSIX_TIMERS > 0) || defined(__OpenBSD__)
|
||||
static unsigned vlc_clock_prec;
|
||||
|
||||
# if (_POSIX_MONOTONIC_CLOCK > 0) && (_POSIX_CLOCK_SELECTION > 0)
|
||||
@@ -625,7 +625,7 @@ void vlc_control_cancel (int cmd, ...)
|
||||
|
||||
mtime_t mdate (void)
|
||||
{
|
||||
-#if (_POSIX_TIMERS > 0)
|
||||
+#if (_POSIX_TIMERS > 0) || defined(__OpenBSD__)
|
||||
struct timespec ts;
|
||||
|
||||
vlc_clock_setup ();
|
Loading…
Add table
Add a link
Reference in a new issue