aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcpcd-dbus/fix-dhcpcd.patch
blob: 13e4f511617725ade7d2a80b3781098ba3bbe39b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -664,7 +664,7 @@
 	return list;
 }
 
-#ifndef __GLIBC__
+#ifndef _GNU_SOURCE
 /* Good enough for our needs */
 static int
 strverscmp(const char *s1, const char *s2)
--- a/dhcpcd.h
+++ b/dhcpcd.h
@@ -28,6 +28,8 @@
 #ifndef DHCPCD_H
 #define DHCPCD_H
 
+#include <sys/types.h>
+
 extern char *dhcpcd_version;
 extern const char *dhcpcd_status;