aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ocfs2-tools/fix-o2monitor-undeclared-PATH_MAX.patch
blob: e6cbed90d8063a47b1527c7d6765e5553bd158a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This fixes the following error on ppc64le:

    o2hbmonitor.c: In function 'get_device_name':
    o2hbmonitor.c:124:12: error: 'PATH_MAX' undeclared (first use in this function)
      char path[PATH_MAX];

--- a/o2monitor/o2hbmonitor.c
+++ b/o2monitor/o2hbmonitor.c
@@ -45,6 +45,7 @@
 #include <errno.h>
 #include <sys/ipc.h>
 #include <sys/sem.h>
+#include <limits.h>
 
 #define SYS_CONFIG_DIR			"/sys/kernel/config"
 #define O2HB_CLUSTER_DIR		SYS_CONFIG_DIR"/cluster"