diff -uNr bsdmainutils-4.1.orig/display.c bsdmainutils-4.1/display.c
--- bsdmainutils-4.1.orig/display.c     Sun Jun  1 21:13:55 1997
+++ bsdmainutils-4.1/display.c  Mon Jan 19 18:49:28 1998
@@ -46,7 +46,7 @@
 #include <string.h>
 #include "hexdump.h"
 
-#ifdef __linux__
+#if defined __linux__ && !defined __GLIBC__
 #define MIN(a, b)              ((a) < (b) ? (a) : (b))
 #ifdef __GNUC__
 typedef long long              quad_t;
diff -uNr bsdmainutils-4.1.orig/tsort.c bsdmainutils-4.1/tsort.c
--- bsdmainutils-4.1.orig/tsort.c       Sun Oct 12 15:09:52 1997
+++ bsdmainutils-4.1/tsort.c    Mon Jan 19 18:53:30 1998
@@ -50,7 +50,11 @@
 #ifdef libc5
 #include <db/db.h>
 #else
+#if defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
+#include <db_185.h>
+#else
 #include <db.h>
+#endif
 #endif
 #include <err.h>
 #include <errno.h>
diff -uNr bsdmainutils-4.1.orig/vacation.c bsdmainutils-4.1/vacation.c
--- bsdmainutils-4.1.orig/vacation.c    Sun Jan 11 22:49:26 1998
+++ bsdmainutils-4.1/vacation.c Mon Jan 19 18:54:34 1998
@@ -55,7 +55,11 @@
 #include <db/db.h>
 #include <tzfile.h>
 #else
+#if defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
+#include <db_185.h>
+#else
 #include <db.h>
+#endif
 #endif
 #include <time.h>
 #include <syslog.h>
