summarylogtreecommitdiffstats
path: root/0001-Added-missing-macros.patch
blob: 13fc87b94ae5f4f948fce219294bd8a0059f1061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/hwloc/topology-linux.c
+++ b/hwloc/topology-linux.c
@@ -2286,6 +2286,7 @@
   int err;
   size_t bufsize;
 
+#ifdef HAVE_OPENAT
   /* try standard mount points */
   if (!hwloc_accessat("/sys/fs/cgroup/cpuset.cpus.effective", R_OK, fsroot_fd)) {
     hwloc_debug("Found standard cgroup2/cpuset mount point at /sys/fs/cgroup/\n");
@@ -2304,6 +2305,7 @@
     return;
   }
   hwloc_debug("Couldn't find any standard cgroup or cpuset mount point, looking in /proc/mounts...\n");
+#endif
 
   /* try to manually find the mount point */
   *mntpnt = NULL;