Skip to content

Commit

Permalink
fix undefined LINE_MAX on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Moreau committed Apr 15, 2022
1 parent 4154cf2 commit 4a28cc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions udev_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#include "udev.h"
#include "udev_list.h"

#ifndef LINE_MAX
#define LINE_MAX 2048
#endif

#ifndef LONG_BIT
#define LONG_BIT (sizeof(unsigned long) * 8)
#endif
Expand Down

0 comments on commit 4a28cc5

Please sign in to comment.