summaryrefslogtreecommitdiffstats
path: root/sys/i4b/include
diff options
context:
space:
mode:
authorhm <hm@FreeBSD.org>2001-01-15 14:54:43 +0000
committerhm <hm@FreeBSD.org>2001-01-15 14:54:43 +0000
commita4ef9041cb78f9b9d0641fd751c19b431496cd8e (patch)
treecc90bbc6f60312809de9f9bd2e361e6365eb7cf2 /sys/i4b/include
parent6948230af2a0bf85cd447c1124448c8b3758cee4 (diff)
downloadFreeBSD-src-a4ef9041cb78f9b9d0641fd751c19b431496cd8e.zip
FreeBSD-src-a4ef9041cb78f9b9d0641fd751c19b431496cd8e.tar.gz
Reenable support for FreeBSD 4.x and possibly the other supported BSD's
Diffstat (limited to 'sys/i4b/include')
-rw-r--r--sys/i4b/include/i4b_global.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/sys/i4b/include/i4b_global.h b/sys/i4b/include/i4b_global.h
index 9bf3025..d4dc77d 100644
--- a/sys/i4b/include/i4b_global.h
+++ b/sys/i4b/include/i4b_global.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved.
+ * Copyright (c) 1997, 2001 Hellmuth Michaelis. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -27,11 +27,9 @@
* i4b_global.h - i4b global include file
* --------------------------------------
*
- * $Id: i4b_global.h,v 1.27 2000/08/28 07:24:58 hm Exp $
- *
* $FreeBSD$
*
- * last edit-date: [Thu Aug 24 12:38:50 2000]
+ * last edit-date: [Mon Jan 15 15:47:40 2001]
*
*---------------------------------------------------------------------------*/
@@ -42,6 +40,25 @@
* hiding OS differences in the kernel
*---------------------------------------------------------------------------*/
+/*-------------------------------------------------*/
+/* hide SMP changes in FreeBSD 5.x-current for 4.x */
+/*-------------------------------------------------*/
+
+#if defined(__FreeBSD__) && __FreeBSD__ <= 4
+
+#define IF_LOCK(a)
+#define IF_UNLOCK(a)
+#define _IF_QFULL(a) IF_QFULL((a))
+#define _IF_ENQUEUE(a, b) IF_ENQUEUE((a), (b))
+#define _IF_DEQUEUE(a, b) IF_DEQUEUE((a), (b))
+#define _IF_PREPEND(a, b) IF_PREPEND((a), (b))
+
+/* get back DELAY() */
+
+#include <machine/clock.h>
+
+#endif
+
/*---------------*/
/* time handling */
/*---------------*/
OpenPOWER on IntegriCloud