File: kfreebsd_support.patch

package info (click to toggle)
scm 5f4-3.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,320 kB
  • sloc: ansic: 58,822; lisp: 17,257; makefile: 1,241; sh: 555; asm: 288
file content (58 lines) | stat: -rw-r--r-- 1,358 bytes parent folder | download | duplicates (2)
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
From: Bryan Newbold <bnewbold@robocracy.org>
Date: Wed, 1 Dec 2021 12:46:29 +0000
Subject: kfreebsd_support

---
 findexec.c | 2 +-
 scmfig.h   | 4 ++--
 time.c     | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/findexec.c b/findexec.c
index 5be7f54..70681a1 100755
--- a/findexec.c
+++ b/findexec.c
@@ -52,7 +52,7 @@ Wed Feb 21 23:06:35 1996  Aubrey Jaffer
 #  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>
diff --git a/scmfig.h b/scmfig.h
index 636302d..1725c3f 100644
--- a/scmfig.h
+++ b/scmfig.h
@@ -327,7 +327,7 @@ rgx.c	init_rgx();	regcomp and regexec. */
 # define STDC_HEADERS
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
 # define HAVE_SELECT
 # define HAVE_SYS_TIME_H
 # define STDC_HEADERS
@@ -791,7 +791,7 @@ typedef SCM  *SCMPTR;
 # include <unistd.h>
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__)
 # include <unistd.h>
 #endif
 
diff --git a/time.c b/time.c
index 7789e92..f45ffa2 100755
--- a/time.c
+++ b/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>