fix build on OSX
This commit is contained in:
parent
107a7b9388
commit
f768cddf3a
2 changed files with 2 additions and 8 deletions
|
@ -34,9 +34,6 @@
|
||||||
|
|
||||||
#include "libmounts.h"
|
#include "libmounts.h"
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#ifdef GETMNTENT
|
#ifdef GETMNTENT
|
||||||
/* direct passthrough the getmntent */
|
/* direct passthrough the getmntent */
|
||||||
FILE *mounts_start (void) {
|
FILE *mounts_start (void) {
|
||||||
|
@ -53,7 +50,7 @@ struct mntent *mounts_next (FILE *fp) {
|
||||||
#ifdef GETMNTINFOCALL
|
#ifdef GETMNTINFOCALL
|
||||||
/* getmntent emulation using getmntinfo */
|
/* getmntent emulation using getmntinfo */
|
||||||
FILE *mounts_start (void) {
|
FILE *mounts_start (void) {
|
||||||
return ((FILE *)0x1) /* dummy non-NULL FILE pointer, not used */
|
return ((FILE *)0x1); /* dummy non-NULL FILE pointer, not used */
|
||||||
}
|
}
|
||||||
int mounts_end (FILE *fp) {
|
int mounts_end (FILE *fp) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -27,12 +27,9 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
#ifndef GETMNTENT
|
#ifndef GETMNTENT
|
||||||
#warning "boo"
|
|
||||||
struct mntent {
|
struct mntent {
|
||||||
char *mnt_fsname;
|
char *mnt_fsname;
|
||||||
char *mnt_dir;
|
char *mnt_dir;
|
||||||
|
|
Loading…
Add table
Reference in a new issue