summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-08-20 22:50:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:14 -0500
commit43afd3fda8c0aba14b2f41778b050c0a93d64253 (patch)
treebd05161cbd971b62ba9d56887571c6d26641fbff /source4/lib
parente205ffd83c36c485bcd07de318e0a1bb506f8415 (diff)
downloadsamba-43afd3fda8c0aba14b2f41778b050c0a93d64253.tar.gz
samba-43afd3fda8c0aba14b2f41778b050c0a93d64253.tar.bz2
samba-43afd3fda8c0aba14b2f41778b050c0a93d64253.zip
r1973: for systems that don't have strtoull() try strtouq(). This should fix
the build for some BSD varients. (This used to be commit 73e9ee791472bb212efe0eb4744daa91678263ad)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/lib/replace.c b/source4/lib/replace.c
index de32d377d5..64234f7042 100644
--- a/source4/lib/replace.c
+++ b/source4/lib/replace.c
@@ -468,3 +468,15 @@ char *rep_inet_ntoa(struct in_addr ip)
return ret;
}
#endif
+
+
+#ifndef HAVE_STRTOULL
+ unsigned long long int strtoull(const char *str, char **endptr, int base)
+{
+#ifdef HAVE_STRTOUQ
+ return strtouq(str, endptr, base);
+#else
+#error "system must support 64 bit integer read from strings"
+#endif
+}
+#endif