From: Vladimir Mezentsev Date: Fri, 12 Jan 2024 19:34:02 +0000 (-0800) Subject: gprofng: 30889 can't compile without large file support X-Git-Tag: binutils-2_42~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b346e50485ee450e8103e4b1704b43f61bc39f7;p=thirdparty%2Fbinutils-gdb.git gprofng: 30889 can't compile without large file support gprofng/ChangeLog 2024-01-12 Vladimir Mezentsev PR 30889 * src/util.h (O_LARGEFILE): Define to 0, if not defined. --- diff --git a/gprofng/src/util.h b/gprofng/src/util.h index c6382aab5bb..cbbc2f7e118 100644 --- a/gprofng/src/util.h +++ b/gprofng/src/util.h @@ -32,6 +32,10 @@ #include "i18n.h" #include "debug.h" +#ifndef O_LARGEFILE +#define O_LARGEFILE 0 +#endif + #define SWAP_ENDIAN(x) swapByteOrder((void *) (&(x)), sizeof(x)) #define AppendString(len, arr, ...) len += snprintf(arr + len, sizeof(arr) - len, __VA_ARGS__) #define ARR_SIZE(x) (sizeof (x) / sizeof (*(x)))