summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2024-01-17 10:57:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2024-01-17 10:57:32 +0000
commit55d0abad892e472b6e6f130efaed48cf5c5145b5 (patch)
tree85f524212637797f0533d32f495d9a50996c28b1 /compat.h
parent7d91b4b90b1eac9fe04a2fab22013bfbb9ff5ee1 (diff)
Need htonll and ntohll.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index cabdf3ad..0693cf06 100644
--- a/compat.h
+++ b/compat.h
@@ -334,6 +334,16 @@ char *strndup(const char *, size_t);
void *memmem(const void *, size_t, const void *, size_t);
#endif
+#ifndef HAVE_HTONLL
+/* htonll.c */
+uint64_t htonll(uint64_t);
+#endif
+
+#ifndef HAVE_NTOHLL
+/* ntohll.c */
+uint64_t ntohll(uint64_t);
+#endif
+
#ifndef HAVE_GETPEEREID
/* getpeereid.c */
int getpeereid(int, uid_t *, gid_t *);