Skip to content

Commit f4b643c

Browse files
committed
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 <[email protected]>
1 parent c6d3415 commit f4b643c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/nvme/util.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
#include "util.h"
2424
#include "log.h"
2525

26+
/* The bionic libc implementation doesn't define LINE_MAX */
27+
#ifndef LINE_MAX
28+
#define LINE_MAX 2048
29+
#endif
30+
2631
/* Source Code Control System, query version of binary with 'what' */
2732
const char sccsid[] = "@(#)libnvme " GIT_VERSION;
2833

0 commit comments

Comments
 (0)