aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--daemon.c8
-rw-r--r--fetchmail.c4
-rw-r--r--mxget.c1
3 files changed, 13 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 97e362be..853094d9 100644
--- a/daemon.c
+++ b/daemon.c
@@ -26,6 +26,14 @@
#include <unix.h>
#endif
+#if defined(HAVE_SGTTY_H)
+# include <sgtty.h> /* for TIOCNOTTY under NEXTSTEP */
+#endif
+
+#ifdef NeXT
+# define pid_t int
+#endif
+
/* BSD portability hack */
#if !defined(SIGCLD) && defined(SIGCHLD)
#define SIGCLD SIGCHLD
diff --git a/fetchmail.c b/fetchmail.c
index 617090e0..3dece2be 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -26,6 +26,10 @@
#include <sys/stat.h>
#include <sys/wait.h>
+#ifdef NeXT
+# define pid_t int
+#endif
+
#ifdef HAVE_GETHOSTBYNAME
#include <netdb.h>
#endif /* HAVE_GETHOSTBYNAME */
diff --git a/mxget.c b/mxget.c
index 42ab26fb..ad4e5090 100644
--- a/mxget.c
+++ b/mxget.c
@@ -8,6 +8,7 @@
#include "config.h"
#ifdef HAVE_RES_SEARCH
+#include <stdio.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>