From: Paul Mackerras Date: Thu, 1 Apr 1999 07:26:30 +0000 (+0000) Subject: make it compile under sunos X-Git-Tag: ppp-2.4.7~747 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=1f32921b4018b34f7b05b2302f5946f58f48df61 make it compile under sunos --- diff --git a/pppdump/bsd-comp.c b/pppdump/bsd-comp.c index b08f2b7..4ef5c7c 100644 --- a/pppdump/bsd-comp.c +++ b/pppdump/bsd-comp.c @@ -38,10 +38,11 @@ */ /* - * $Id: bsd-comp.c,v 1.1 1999/03/23 03:21:57 paulus Exp $ + * $Id: bsd-comp.c,v 1.2 1999/04/01 07:26:30 paulus Exp $ */ #include +#include #include #include "ppp_defs.h" #include "ppp-comp.h" diff --git a/pppdump/deflate.c b/pppdump/deflate.c index e7d3187..6d16629 100644 --- a/pppdump/deflate.c +++ b/pppdump/deflate.c @@ -25,10 +25,11 @@ * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, * OR MODIFICATIONS. * - * $Id: deflate.c,v 1.1 1999/03/23 03:21:57 paulus Exp $ + * $Id: deflate.c,v 1.2 1999/04/01 07:26:30 paulus Exp $ */ #include +#include #include #include "ppp_defs.h" #include "ppp-comp.h" diff --git a/pppdump/pppdump.c b/pppdump/pppdump.c index d7a39f7..49b1626 100644 --- a/pppdump/pppdump.c +++ b/pppdump/pppdump.c @@ -22,6 +22,7 @@ int decompress; int mru = 1500; extern int optind; +extern char *optarg; main(ac, av) int ac; diff --git a/pppdump/zlib.c b/pppdump/zlib.c index 99e5380..c3c68f6 100644 --- a/pppdump/zlib.c +++ b/pppdump/zlib.c @@ -11,7 +11,7 @@ * - added Z_PACKET_FLUSH (see zlib.h for details) * - added inflateIncomp * - * $Id: zlib.c,v 1.1 1999/03/23 03:21:58 paulus Exp $ + * $Id: zlib.c,v 1.2 1999/04/01 07:26:30 paulus Exp $ */ @@ -85,20 +85,15 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */ /* functions */ -#if defined(KERNEL) || defined(_KERNEL) -# define zmemcpy(d, s, n) bcopy((s), (d), (n)) -# define zmemzero bzero -#else #if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY) # define HAVE_MEMCPY #endif #ifdef HAVE_MEMCPY -# define zmemcpy memcpy -# define zmemzero(dest, len) memset(dest, 0, len) +# define zmemcpy memcpy +# define zmemzero(dest, len) memset(dest, 0, len) #else - extern void zmemcpy OF((Bytef* dest, Bytef* source, uInt len)); - extern void zmemzero OF((Bytef* dest, uInt len)); -#endif +# define zmemcpy(d, s, n) bcopy((s), (d), (n)) +# define zmemzero bzero #endif /* Diagnostic functions */