Package: ndctl / 63-1.3

include_errno.h.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Avoid the following error:

	util/filter.c: In function ‘mode_to_type’:
	util/filter.c:341:11: error: ‘ENXIO’ undeclared (first use in this function)
	   return -ENXIO;
		   ^~~~~

--- ndctl-63.orig/util/filter.c
+++ ndctl-63/util/filter.c
@@ -11,6 +11,7 @@
  * General Public License for more details.
  */
 #include <stdio.h>
+#include <errno.h>
 #include <string.h>
 #include <stdlib.h>
 #include <limits.h>