File: fix_ftbfs_nonlinux.patch

package info (click to toggle)
allegro4.4 2%3A4.4.3.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,756 kB
  • sloc: ansic: 164,458; asm: 17,620; cpp: 3,848; javascript: 3,053; objc: 1,687; sh: 1,107; python: 676; pascal: 179; makefile: 54; perl: 29; lisp: 1
file content (17 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix to build on non-Linux arches
 Define ESTRPIPE on non-Linux systems that don't have it.
Author: Steven Chamberlain <steven@pyro.eu.org>

--- a/src/unix/alsa9.c
+++ b/src/unix/alsa9.c
@@ -36,6 +36,10 @@
    #include <math.h>
 #endif
 
+/* Linux-kernel specific errnos */
+#ifndef ESTRPIPE
+#define ESTRPIPE 86
+#endif
 
 #ifndef SND_PCM_FORMAT_S16_NE
    #ifdef ALLEGRO_BIG_ENDIAN