hwloc fix to support c89 builds.
authorPavan Balaji <balaji@mcs.anl.gov>
Mon, 6 May 2013 01:17:15 +0000 (20:17 -0500)
committerPavan Balaji <balaji@mcs.anl.gov>
Mon, 6 May 2013 01:17:15 +0000 (20:17 -0500)
No reviewer.

src/pm/hydra/tools/topo/hwloc/hwloc/config/hwloc.m4
src/pm/hydra/tools/topo/hwloc/hwloc/include/private/misc.h

index 564ede4..3bec360 100644 (file)
@@ -460,6 +460,10 @@ EOF])
                 [return sysctlbyname(NULL,NULL,NULL,NULL,0);],
                 AC_DEFINE([HAVE_SYSCTLBYNAME],[1],[Define to '1' if sysctlbyname is present and usable]))
 
+    AC_CHECK_DECLS([strtoull],
+       [AC_DEFINE([HWLOC_HAVE_DECL_STRTOULL],[1],[Define to '1' if strtoull declaration is present])],,
+       [AC_INCLUDES_DEFAULT])
+
     case ${target} in
       *-*-mingw*|*-*-cygwin*)
         hwloc_pid_t=HANDLE
index f2d475e..e1ce98a 100644 (file)
 #error "unknown size for unsigned int."
 #endif
 
+#if !defined(HWLOC_HAVE_DECL_STRTOULL)
+unsigned long long int strtoull(const char *nptr, char **endptr, int base);
+#endif /* HWLOC_HAVE_DECL_STRTOULL */
+
 
 /**
  * ffsl helpers.