freebsd: add #ifdef HAVE_SYS_SYSCTL_H around hwloc_freebsd_node_meminfo_info()
It's needed for CTL_HW.
Thanks to Pavan Balaji.
This commit was SVN r5633.
#endif
#endif
-#ifdef HAVE_SYSCTL
+#if (defined HAVE_SYSCTL) && (defined HAVE_SYS_SYSCTL_H)
static void
hwloc_freebsd_node_meminfo_info(struct hwloc_topology *topology)
{
}
/* Add FreeBSD specific information */
-#ifdef HAVE_SYSCTL
+#if (defined HAVE_SYSCTL) && (defined HAVE_SYS_SYSCTL_H)
hwloc_freebsd_node_meminfo_info(topology);
#endif
hwloc_obj_add_info(topology->levels[0][0], "Backend", "FreeBSD");