File: 01_fix_hurd_FTBFS.diff

package info (click to toggle)
plib 1.8.5-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,588 kB
  • sloc: cpp: 63,284; sh: 3,457; makefile: 211
file content (58 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download | duplicates (3)
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
Description: _fix_hurd_FTBFS.diff
--- a/src/js/jsNone.cxx
+++ b/src/js/jsNone.cxx
@@ -22,7 +22,7 @@
 
 #include "js.h"
 
-#if defined(UL_IRIX) || defined(UL_SOLARIS) || defined (UL_HPUX)
+#if defined(UL_IRIX) || defined(UL_SOLARIS) || defined (UL_HPUX) || defined(UL_GNU)
 
 struct os_specific_s ;
 
--- a/src/util/ul.h
+++ b/src/util/ul.h
@@ -92,6 +92,10 @@
 
 #define UL_HPUX      1
 
+#elif defined(__GNU__)
+
+#define UL_GNU       1
+
 #elif (defined(__unix__) || defined(unix)) && !defined(USG)
 
 #define UL_BSD       1
@@ -144,6 +148,12 @@
 #define  UL_GLX     1
 #endif
 
+#ifdef UL_GNU
+#include <unistd.h>
+#include <dlfcn.h>
+#define  UL_GLX     1
+#endif
+
 #include <assert.h>
 #include <limits.h>
 #include <math.h>
--- a/src/sl/slPortability.h
+++ b/src/sl/slPortability.h
@@ -51,7 +51,7 @@
 #include <limits.h>
 #include <math.h>
 
-#if (defined(UL_LINUX) || defined(UL_BSD)) && !defined(__NetBSD__)
+#if (defined(UL_LINUX) || defined(UL_BSD) || defined(UL_GNU)) && !defined(__NetBSD__)
 #define SL_USING_OSS_AUDIO 1
 #endif
 
@@ -59,7 +59,7 @@
 #  if defined(UL_LINUX)
 #    include <linux/soundcard.h>
 #    include <sys/ioctl.h>
-#  elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#  elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(UL_GNU)
 #    include <sys/soundcard.h>
 #  else
     /*