summarylogtreecommitdiffstats
path: root/0000-Invalid-MKDEV-macro.patch
diff options
context:
space:
mode:
authorChris Severance2018-06-18 21:36:23 -0400
committerChris Severance2018-06-18 21:36:23 -0400
commit0ac0c2fb9bd83b0d8af9607648ea4068396e4ee6 (patch)
tree9fa91b4344cf485f8868fe4e9e67cd38d9e229a3 /0000-Invalid-MKDEV-macro.patch
parent2a8ada8285cf7f7f770e247e3166f08fd7cd4e2f (diff)
downloadaur-0ac0c2fb9bd83b0d8af9607648ea4068396e4ee6.tar.gz
autu: Update to 7.28-4
Diffstat (limited to '0000-Invalid-MKDEV-macro.patch')
-rw-r--r--0000-Invalid-MKDEV-macro.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0000-Invalid-MKDEV-macro.patch b/0000-Invalid-MKDEV-macro.patch
new file mode 100644
index 000000000000..19f32351c76d
--- /dev/null
+++ b/0000-Invalid-MKDEV-macro.patch
@@ -0,0 +1,26 @@
+--- nslinkd.c.orig 2018-01-05 11:01:23.000000000 -0500
++++ nslinkd.c 2018-06-18 18:06:27.399852118 -0400
+@@ -40,10 +40,11 @@
+ #include <netinet/tcp.h>
+ #include <arpa/inet.h>
+ #include <netpacket/packet.h>
+ #include <net/if.h>
+ #include <netdb.h>
++#include <linux/kdev_t.h>
+
+ #include "nslink.h"
+ #include "nslinkd.h"
+ #include "version.h"
+
+@@ -216,11 +217,10 @@ static void put_pid_file()
+
+ /*
+ * Create a device if it doesn't exist and have the correct device
+ * number or major/minor number.
+ */
+-#define MKDEV(a,b) ((int)((((a) & 0xff) << 8) | ((b) & 0xff)))
+
+
+ static void create_device(const char *prefix, int major, int num, gid_t def_group)
+ {
+ char name[80];