From: Daniel Wagner Date: Wed, 3 Aug 2022 11:56:48 +0000 (+0200) Subject: util: Add LINE_MAX define X-Git-Tag: v1.2~43^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f4b643ccff639d867312e9ac9fb0aea1898681e7;p=users%2Fsagi%2Flibnvme.git util: Add LINE_MAX define The bionic libc implementation doesn't implement the complete POSIX API. Apperantly we just need this define to be able to compile for Android OS. Thus, keep it as simple as possible and just define it here. Signed-off-by: Daniel Wagner --- diff --git a/src/nvme/util.c b/src/nvme/util.c index ff5e0d8c..4363d5e4 100644 --- a/src/nvme/util.c +++ b/src/nvme/util.c @@ -23,6 +23,11 @@ #include "util.h" #include "log.h" +/* The bionic libc implementation doesn't define LINE_MAX */ +#ifndef LINE_MAX +#define LINE_MAX 2048 +#endif + /* Source Code Control System, query version of binary with 'what' */ const char sccsid[] = "@(#)libnvme " GIT_VERSION;