From c3b6ad6667e0ed297645489dd1f08187e1822b08 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Tue, 25 Feb 1997 14:05:17 +0000 Subject: osreldate.h stuff suggested by: Eivind Eklund Remove #include's from sig.h and get dependant modules to include them themselves. Make inclusion of if_var.h depend on __FreeBSD_version so that the -current version of ppp can be used with 2.1.* 2.2 Candidate ? --- usr.sbin/ppp/arp.c | 5 ++++- usr.sbin/ppp/chat.c | 4 +++- usr.sbin/ppp/main.c | 4 +++- usr.sbin/ppp/os.c | 5 ++++- usr.sbin/ppp/sig.c | 4 +++- usr.sbin/ppp/sig.h | 4 +--- usr.sbin/ppp/timer.c | 3 ++- 7 files changed, 20 insertions(+), 9 deletions(-) diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c index da20f0f62c9e..20af40ca68a4 100644 --- a/usr.sbin/ppp/arp.c +++ b/usr.sbin/ppp/arp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id$ + * $Id: arp.c,v 1.9 1997/02/22 16:09:56 peter Exp $ * */ @@ -35,7 +35,10 @@ #include #include +#include +#if __FreeBSD_version >= 199702 #include +#endif #include #include #include diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 25b25766adec..a66aa18d7b17 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -18,7 +18,7 @@ * Columbus, OH 43221 * (614)451-1883 * - * $Id$ + * $Id: chat.c,v 1.16 1997/02/22 16:10:06 peter Exp $ * * TODO: * o Support more UUCP compatible control sequences. @@ -34,6 +34,8 @@ #include #include #include +#include +#include #include "sig.h" #include #include "timeout.h" diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 204161ff59a6..d9df828277c7 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id$ + * $Id: main.c,v 1.32 1997/02/22 16:10:32 peter Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -28,6 +28,8 @@ #include #include #include +#include +#include #include "sig.h" #include #include diff --git a/usr.sbin/ppp/os.c b/usr.sbin/ppp/os.c index 32f24b0cff13..08dff5b537fb 100644 --- a/usr.sbin/ppp/os.c +++ b/usr.sbin/ppp/os.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id$ + * $Id: os.c,v 1.13 1997/02/22 16:10:38 peter Exp $ * */ #include "fsm.h" @@ -33,7 +33,10 @@ #include #include +#include +#if __FreeBSD_version >= 199702 #include +#endif #include #include #include diff --git a/usr.sbin/ppp/sig.c b/usr.sbin/ppp/sig.c index b55b0d8fde36..9763dab5718c 100644 --- a/usr.sbin/ppp/sig.c +++ b/usr.sbin/ppp/sig.c @@ -26,14 +26,16 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sig.c,v 1.2 1997/02/22 16:10:51 peter Exp $ + * $Id: sig.c,v 1.3 1997/02/23 20:01:19 brian Exp $ * * TODO: * */ +#include #include "sig.h" #include +#include #include "mbuf.h" #include "log.h" diff --git a/usr.sbin/ppp/sig.h b/usr.sbin/ppp/sig.h index 3ffe765b6a08..cbc41d564539 100644 --- a/usr.sbin/ppp/sig.h +++ b/usr.sbin/ppp/sig.h @@ -26,14 +26,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sig.h,v 1.3 1997/02/23 19:28:56 brian Exp $ + * $Id: sig.h,v 1.4 1997/02/23 20:01:20 brian Exp $ * * TODO: * */ -#include - typedef void (*sig_type)(int); /* Call this instead of signal() */ diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c index de9a08cd61c6..68214cf27bb4 100644 --- a/usr.sbin/ppp/timer.c +++ b/usr.sbin/ppp/timer.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id$ + * $Id: timer.c,v 1.9 1997/02/22 16:10:59 peter Exp $ * * TODO: */ @@ -25,6 +25,7 @@ #include #include #include "timeout.h" +#include #include "sig.h" #ifdef SIGALRM #include -- cgit v1.3