aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/kfreebsd_support.patch
blob: 07166a0a040125b4d280df132951392d3dbdca8a (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
--- scm-5e5.orig/time.c
+++ scm-5e5/time.c
@@ -73,7 +73,7 @@
 /* Define this if your system lacks times(). */
 /* #define LACK_TIMES */
 
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
 # include <sys/types.h>
 # include <sys/time.h>
 # include <sys/timeb.h>
only in patch2:
unchanged:
--- scm-5e5.orig/scmfig.h
+++ scm-5e5/scmfig.h
@@ -310,7 +310,7 @@
 # define STDC_HEADERS
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
 # define HAVE_SELECT
 # define HAVE_SYS_TIME_H
 # define STDC_HEADERS
@@ -755,7 +755,7 @@
 # include <unistd.h>
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
 # include <unistd.h>
 #endif
 
only in patch2:
unchanged:
--- scm-5e5.orig/findexec.c
+++ scm-5e5/findexec.c
@@ -51,7 +51,7 @@
 #  include <sys/file.h>
 #  include <sys/param.h>
 # endif
-# ifdef linux
+# if defined(linux) || defined(__GLIBC__)
 #  include <string.h>
 #  include <stdlib.h>
 #  include <sys/stat.h>