aboutsummaryrefslogtreecommitdiffstats
path: root/main/alsa-lib/fix-headers.patch
blob: 942cb97266da17b9e69149b688d4238afe13c3bc (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--- alsa-lib-1.0.27.2.orig/include/asoundlib-head.h
+++ alsa-lib-1.0.27.2/include/asoundlib-head.h
@@ -36,7 +36,7 @@
 #include <fcntl.h>
 #include <assert.h>
 #include <endian.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <errno.h>
 #include <stdarg.h>
 
--- alsa-lib-1.0.27.2.orig/include/asoundlib.h
+++ alsa-lib-1.0.27.2/include/asoundlib.h
@@ -36,7 +36,7 @@
 #include <fcntl.h>
 #include <assert.h>
 #include <endian.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <errno.h>
 #include <stdarg.h>
 
--- alsa-lib-1.0.27.2.orig/include/global.h
+++ alsa-lib-1.0.27.2/include/global.h
@@ -133,18 +133,6 @@
 
 int snd_user_file(const char *file, char **result);
 
-#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE)
-struct timeval {
-	time_t		tv_sec;		/* seconds */
-	long		tv_usec;	/* microseconds */
-};
-
-struct timespec {
-	time_t		tv_sec;		/* seconds */
-	long		tv_nsec;	/* nanoseconds */
-};
-#endif
-
 /** Timestamp */
 typedef struct timeval snd_timestamp_t;
 /** Hi-res timestamp */
--- alsa-lib-1.0.27.2.orig/include/local.h
+++ alsa-lib-1.0.27.2/include/local.h
@@ -30,7 +30,7 @@
 #include <assert.h>
 #include <endian.h>
 #include <stdarg.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <errno.h>
 #include <linux/ioctl.h>
 
--- alsa-lib-1.0.27.2.orig/src/shmarea.c
+++ alsa-lib-1.0.27.2/src/shmarea.c
@@ -19,7 +19,7 @@
  */
   
 #include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 #include <sys/poll.h>