summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorTrond Norbye <Trond.Norbye@sun.com>2009-08-26 23:44:30 +0200
committerDustin Sallings <dustin@spy.net>2009-09-02 16:08:07 -0700
commit9791b7794e5439baaced1fd4afa26e09f33cfc36 (patch)
tree65b2efb41ec41a3bfe98ed970ee183e6cba76cf8 /util.h
parentf9bc2b11edf151ce4b33efbe011bd807f14180ca (diff)
downloadmemcached-9791b7794e5439baaced1fd4afa26e09f33cfc36.tar.gz
Issue: #83: Refactor: use htonll or ntohll if the os provides them
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
index b89d15e..1ec1a52 100644
--- a/util.h
+++ b/util.h
@@ -12,6 +12,11 @@ bool safe_strtoll(const char *str, int64_t *out);
bool safe_strtoul(const char *str, uint32_t *out);
bool safe_strtol(const char *str, int32_t *out);
+#ifndef HAVE_HTONLL
+extern uint64_t htonll(uint64_t);
+extern uint64_t ntohll(uint64_t);
+#endif
+
#ifdef __GCC
# define __gcc_attribute__ __attribute__
#else