Add sys/sysmacros.h to mountpoint.c to fix compiling on

systems where major/minor macros are not defined implicitly.
This commit is contained in:
Jesse
2022-05-04 12:10:27 -03:00
parent e3d0f4bfc1
commit 746b0fc6a9
2 changed files with 6 additions and 0 deletions

View File

@@ -32,6 +32,10 @@
#include <getopt.h>
#include <stdio.h>
#if defined (__linux__) || defined(__GNU__)
#include <sys/sysmacros.h>
#endif
#ifndef PATH_MAX
#define PATH_MAX 2048
#endif