summaryrefslogtreecommitdiff
path: root/utils/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/utils.c')
-rw-r--r--utils/utils.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/utils.c b/utils/utils.c
index c5c1529a3..b260f373e 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -283,6 +283,19 @@ char *human_friendly_bytesize(unsigned long long int bsize) {
}
+#ifndef HAVE_STRTOULL
+/**
+ * string to unsigned long long
+ *
+ */
+unsigned long long int _strtoull(const char *nptr, char **endptr, int base)
+{
+ return (unsigned long long int)strtoul(nptr, endptr, base);
+}
+
+#endif
+
+
#ifndef HAVE_STRCASESTR
/**