From 640666fb36d7465b188f9d0bedc83ad60b83a1d7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 17 Mar 2017 14:55:33 +0000 Subject: [PATCH] Fix some warnings. --- compat/forkpty-aix.c | 3 +++ compat/forkpty-hpux.c | 3 +++ compat/forkpty-sunos.c | 3 +++ compat/strcasestr.c | 2 ++ compat/strsep.c | 2 ++ 5 files changed, 13 insertions(+) diff --git a/compat/forkpty-aix.c b/compat/forkpty-aix.c index 193be5ee..31b084db 100644 --- a/compat/forkpty-aix.c +++ b/compat/forkpty-aix.c @@ -25,6 +25,9 @@ #include "compat.h" +void fatal(const char *, ...); +void fatalx(const char *, ...); + pid_t forkpty(int *master, unused char *name, struct termios *tio, struct winsize *ws) { diff --git a/compat/forkpty-hpux.c b/compat/forkpty-hpux.c index dd71bd6c..64494f65 100644 --- a/compat/forkpty-hpux.c +++ b/compat/forkpty-hpux.c @@ -24,6 +24,9 @@ #include "compat.h" +void fatal(const char *, ...); +void fatalx(const char *, ...); + pid_t forkpty(int *master, char *name, struct termios *tio, struct winsize *ws) { diff --git a/compat/forkpty-sunos.c b/compat/forkpty-sunos.c index 81109630..18bba3bc 100644 --- a/compat/forkpty-sunos.c +++ b/compat/forkpty-sunos.c @@ -26,6 +26,9 @@ #include "compat.h" +void fatal(const char *, ...); +void fatalx(const char *, ...); + pid_t forkpty(int *master, char *name, struct termios *tio, struct winsize *ws) { diff --git a/compat/strcasestr.c b/compat/strcasestr.c index aa74c017..8679cf88 100644 --- a/compat/strcasestr.c +++ b/compat/strcasestr.c @@ -36,6 +36,8 @@ #include #include +#include "compat.h" + /* * Find the first occurrence of find in s, ignore case. */ diff --git a/compat/strsep.c b/compat/strsep.c index c44bc5b2..58584587 100644 --- a/compat/strsep.c +++ b/compat/strsep.c @@ -32,6 +32,8 @@ #include #include +#include "compat.h" + /* * Get next token from string *stringp, where tokens are possibly-empty * strings separated by characters from delim.