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 f7bc664..b57d737 100755
--- a/scmfig.h
+++ b/scmfig.h
@@ -314,7 +314,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
@@ -769,7 +769,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>
