blob: 04154f35bf4dee08ab7d68df659f300bd2901547 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
diff --git a/src/control/vlm.c b/src/control/vlm.c
index 05417e5..46fa957 100644
--- a/src/control/vlm.c
+++ b/src/control/vlm.c
@@ -25,6 +25,10 @@
# include <config.h>
#endif
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/libvlc.h>
#include <vlc/libvlc_vlm.h>
#include <vlc_es.h>
diff --git a/src/misc/linux_specific.c b/src/misc/linux_specific.c
index 1644ce6..1440e1c 100644
--- a/src/misc/linux_specific.c
+++ b/src/misc/linux_specific.c
@@ -83,14 +83,14 @@ static struct
unsigned refs;
} once = { VLC_STATIC_MUTEX, 0 };
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
# include <gnu/libc-version.h>
# include <stdlib.h>
#endif
void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
{
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
const char *glcv = gnu_get_libc_version ();
/* gettext in glibc 2.5-2.7 is not thread-safe. LibVLC keeps crashing,
diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index 1cc787d..985aa3a 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -78,7 +78,7 @@ int nanosleep(struct timespec *, struct timespec *);
# define _POSIX_CLOCK_SELECTION (-1)
#endif
-# if (_POSIX_CLOCK_SELECTION < 0)
+# if (_POSIX_CLOCK_SELECTION < 0) || defined(__UCLIBC__)
/*
* We cannot use the monotonic clock if clock selection is not available,
* as it would screw vlc_cond_timedwait() completely. Instead, we have to
|