- (djm) NeXT patch from Ben Lindstrom <mouring@pconline.com>
diff --git a/ChangeLog b/ChangeLog
index f0640e5..a51215d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
  - (djm) Seperate tests for int64_t and u_int64_t types
  - (djm) Tweak password expiry checking at suggestion of Kevin Steves 
    <stevesk@sweden.hp.com>
+ - (djm) NeXT patch from Ben Lindstrom <mouring@pconline.com>
 
 20000920
  - (djm) Fix bad path substitution. Report from Andrew Miner
diff --git a/defines.h b/defines.h
index cf2a342..b340459 100644
--- a/defines.h
+++ b/defines.h
@@ -34,6 +34,9 @@
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h> /* For S_* constants and macros */
 #endif
+#ifdef HAVE_NEXT
+#  include <libc.h>
+#endif
 
 #include <unistd.h> /* For STDIN_FILENO, etc */
 
diff --git a/next-posix.h b/next-posix.h
index 06149d5..077b132 100644
--- a/next-posix.h
+++ b/next-posix.h
@@ -7,7 +7,6 @@
 
 #ifdef HAVE_NEXT
 
-#include <libc.h>
 #include <sys/dir.h>
 
 /* readdir() returns struct direct (BSD) not struct dirent (POSIX) */