diff options
Diffstat (limited to 'xpp/xpd.h')
-rw-r--r-- | xpp/xpd.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -37,6 +37,9 @@ #include <zaptel.h> #ifdef __KERNEL__ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) +typedef unsigned gfp_t; /* Added in 2.6.14 */ +#endif #define DEF_PARM(type,name,init,desc) \ type name = init; \ module_param(name, type, 0600); \ @@ -83,7 +86,7 @@ typedef struct packet_queue { struct xbus_ops { int (*packet_send)(xbus_t *xbus, xpacket_t *packet); - xpacket_t *(*packet_new)(xbus_t *xbus, int flags); + xpacket_t *(*packet_new)(xbus_t *xbus, gfp_t flags); void (*packet_free)(xbus_t *xbus, xpacket_t *p); }; |