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:
parent
e3d0f4bfc1
commit
746b0fc6a9
@ -2,6 +2,8 @@ sysvinit (3.05) unreleased; urgency=low
|
|||||||
* Helge Kreutzmann provided updated Makefile for
|
* Helge Kreutzmann provided updated Makefile for
|
||||||
translation of manual pages. This has been added
|
translation of manual pages. This has been added
|
||||||
to the man directory.
|
to the man directory.
|
||||||
|
* Added sys/sysmacros.h include in mountpoint.c to fix
|
||||||
|
compiler errors on systems where major/minor macros were not defined.
|
||||||
|
|
||||||
sysvinit (3.04) released; urgency=low
|
sysvinit (3.04) released; urgency=low
|
||||||
* Mark Hindley supplied patch to make bootlogd compile
|
* Mark Hindley supplied patch to make bootlogd compile
|
||||||
|
@ -32,6 +32,10 @@
|
|||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#if defined (__linux__) || defined(__GNU__)
|
||||||
|
#include <sys/sysmacros.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
#define PATH_MAX 2048
|
#define PATH_MAX 2048
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user