File fix-build.patch of Package pds
diff --git a/linux/hdlc_lib.c b/linux/hdlc_lib.c
index 3201393..ccd7ef8 100644
--- a/linux/hdlc_lib.c
+++ b/linux/hdlc_lib.c
@@ -26,7 +26,7 @@ void target_consume(struct kthread_target *to, struct kthread_target *from)
static inline bool target_is_consumed(struct kthread_target *o)
{
- return ACCESS_ONCE(o->fn) == NULL;
+ return READ_ONCE(o->fn) == NULL;
}
static int periodic_fn(void *target)
diff --git a/linux/hdlc_tun.c b/linux/hdlc_tun.c
index 3ca9925..40400ce 100644
--- a/linux/hdlc_tun.c
+++ b/linux/hdlc_tun.c
@@ -12,6 +12,7 @@
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/version.h>
+#include <linux/inet.h>
#include "hdlc_lib.h"
@@ -268,7 +269,6 @@ static struct net_device_stats *hdlc_tun_get_stats(struct net_device *dev)
static const struct net_device_ops hdlc_tun_ops = {
.ndo_open = hdlc_tun_open,
.ndo_stop = hdlc_tun_close,
- .ndo_change_mtu = hdlc_change_mtu,
.ndo_start_xmit = hdlc_start_xmit,
.ndo_do_ioctl = hdlc_tun_ioctl,
.ndo_get_stats = hdlc_tun_get_stats,
diff --git a/linux/pds.h b/linux/pds.h
index 6693d50..91b6982 100644
--- a/linux/pds.h
+++ b/linux/pds.h
@@ -9,6 +9,8 @@
#ifndef PDS_H
#define PDS_H 1
+#define DAHDI_NG 1
+
#include <linux/bitops.h>
#include <linux/hrtimer.h>
#include <linux/netdevice.h>