summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_frag.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-21 11:34:28 +0000
committerpeter <peter@FreeBSD.org>1998-03-21 11:34:28 +0000
commitf3fab3424a9f8b8701ade20bff88558d3750e701 (patch)
tree7cbaed64e5a96e273e7b7f290f6d51a98aa3a9f2 /sys/netinet/ip_frag.c
parentf9b0ed3b4946d1138f76be952463c3b76dd1eb05 (diff)
downloadFreeBSD-src-f3fab3424a9f8b8701ade20bff88558d3750e701.zip
FreeBSD-src-f3fab3424a9f8b8701ade20bff88558d3750e701.tar.gz
Make this compile.. There are some unpleasing hacks in here.
A major unifdef session is sorely tempting but would destroy any remaining chance of tracking the original sources.
Diffstat (limited to 'sys/netinet/ip_frag.c')
-rw-r--r--sys/netinet/ip_frag.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/netinet/ip_frag.c b/sys/netinet/ip_frag.c
index 923f685..a379c67 100644
--- a/sys/netinet/ip_frag.c
+++ b/sys/netinet/ip_frag.c
@@ -7,9 +7,14 @@
*/
#if !defined(lint)
static const char sccsid[] = "@(#)ip_frag.c 1.11 3/24/96 (C) 1993-1995 Darren Reed";
-static const char rcsid[] = "@(#)$Id: ip_frag.c,v 2.0.2.19.2.1 1997/11/12 10:50:21 darrenr Exp $";
+static const char rcsid[] = "@(#)$Id: ip_frag.c,v 1.1.1.5 1997/11/16 05:55:34 peter Exp $";
#endif
+#if !defined(_KERNEL) && defined(KERNEL)
+#define _KERNEL
+#endif
+#define __FreeBSD_version 300000 /* it's a hack, but close enough */
+
#if !defined(_KERNEL) && !defined(KERNEL)
# include <string.h>
# include <stdlib.h>
@@ -22,6 +27,7 @@ static const char rcsid[] = "@(#)$Id: ip_frag.c,v 2.0.2.19.2.1 1997/11/12 10:50:
#if defined(KERNEL) && (__FreeBSD_version >= 220000)
#include <sys/filio.h>
#include <sys/fcntl.h>
+#include <sys/malloc.h>
#else
#include <sys/ioctl.h>
#endif
@@ -43,6 +49,9 @@ static const char rcsid[] = "@(#)$Id: ip_frag.c,v 2.0.2.19.2.1 1997/11/12 10:50:
# include <sys/stream.h>
# include <sys/kmem.h>
#endif
+#if defined(KERNEL) && (__FreeBSD_version >= 300000)
+#include <sys/malloc.h>
+#endif
#include <net/if.h>
#ifdef sun
OpenPOWER on IntegriCloud