Skip to content

Commit cee7533

Browse files
authored
Merge pull request #453 from igaw/add-line-max-define
util: Add LINE_MAX define
2 parents cb3dd26 + f4b643c commit cee7533

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)