]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
util: Add LINE_MAX define
authorDaniel Wagner <dwagner@suse.de>
Wed, 3 Aug 2022 11:56:48 +0000 (13:56 +0200)
committerDaniel Wagner <dwagner@suse.de>
Wed, 3 Aug 2022 11:56:48 +0000 (13:56 +0200)
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 <dwagner@suse.de>
src/nvme/util.c

index ff5e0d8ccd602c1191b8bf6e0577897b011f29eb..4363d5e468e4781c2c6a8dda650b692f5a25cd7c 100644 (file)
 #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;