Commit d98ad79d authored by Norbert Lange's avatar Norbert Lange Committed by Jan Kiszka

cobalt: allow to compile without __USE_LARGEFILE64

A header uses the off64_t which is only conditionally available,
causing compile failures.
The macro might be necessary to compile cobalt libraries,
but should not be needed for software depending on them.
Signed-off-by: default avatarNorbert Lange <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent eb89dc0b
......@@ -31,8 +31,10 @@ extern "C" {
COBALT_DECL(void *, mmap(void *addr, size_t length, int prot, int flags,
int fd, off_t offset));
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
COBALT_DECL(void *, mmap64(void *addr, size_t length, int prot, int flags,
int fd, off64_t offset));
#ifdef __cplusplus
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment