aboutsummaryrefslogtreecommitdiffstats
path: root/main/alsa-lib/fix-headers.patch
blob: fbb28ee51344dcf630c464f54eca0a4fc1960c3e (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
Common subdirectories: alsa-lib-1.0.27.2.orig/include/alsa and alsa-lib-1.0.27.2/include/alsa
--- 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>
 
Common subdirectories: alsa-lib-1.0.27.2.orig/include/sound and alsa-lib-1.0.27.2/include/sound
--- alsa-lib-1.0.27.2/src/shmarea.c.orig
+++ 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>