]> git.ozlabs.org Git - ppp.git/commitdiff
make it compile under sunos
authorPaul Mackerras <paulus@samba.org>
Thu, 1 Apr 1999 07:26:30 +0000 (07:26 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 1 Apr 1999 07:26:30 +0000 (07:26 +0000)
pppdump/bsd-comp.c
pppdump/deflate.c
pppdump/pppdump.c
pppdump/zlib.c

index b08f2b781e4e86d672f7340d6f4168cf559bd955..4ef5c7cb0b4a0c83dea740a3d84fa6a05f68deb9 100644 (file)
  */
 
 /*
- * $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 <sys/types.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include "ppp_defs.h"
 #include "ppp-comp.h"
index e7d3187fc12f6cc104dc8d653bf4a5d8a9893e4d..6d16629581f852fca208d0159f8dabc02dd2c3fa 100644 (file)
  * 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 <sys/types.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include "ppp_defs.h"
 #include "ppp-comp.h"
index d7a39f78a7bf78ffab178394709b3459ad3c4a9e..49b1626da751cca950bed08e982194f6889feb15 100644 (file)
@@ -22,6 +22,7 @@ int decompress;
 int mru = 1500;
 
 extern int optind;
+extern char *optarg;
 
 main(ac, av)
     int ac;
index 99e53805cb1f0325468aab6d5ca351c90859a7bf..c3c68f65f8641611a4c6e9fed905955b14b416f9 100644 (file)
@@ -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 */