[svn-commits] kpfleming: branch 1.2 r1700 - /branches/1.2/xpp/xdefs.h

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Dec 11 12:05:44 MST 2006


Author: kpfleming
Date: Mon Dec 11 13:05:43 2006
New Revision: 1700

URL: http://svn.digium.com/view/zaptel?view=rev&rev=1700
Log:
kernel 2.6.19 now has a type called 'bool', although it's not completely implemented so there will still be some warnings when building xpp against 2.6.19 kernel headers

Modified:
    branches/1.2/xpp/xdefs.h

Modified: branches/1.2/xpp/xdefs.h
URL: http://svn.digium.com/view/zaptel/branches/1.2/xpp/xdefs.h?view=diff&rev=1700&r1=1699&r2=1700
==============================================================================
--- branches/1.2/xpp/xdefs.h (original)
+++ branches/1.2/xpp/xdefs.h Mon Dec 11 13:05:43 2006
@@ -25,6 +25,11 @@
 #ifdef	__KERNEL__
 
 #include <linux/kernel.h>
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+#define LINUX26
+#endif
 
 #else
 
@@ -95,7 +100,9 @@
 
 typedef char			*charp;
 typedef unsigned char		byte;
+#if !defined(LINUX26) || (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
 typedef int			bool;
+#endif
 typedef struct xbus		xbus_t;
 typedef	struct xpd		xpd_t;
 typedef	struct xpacket_raw	xpacket_raw_t;



More information about the svn-commits mailing list