no longer use deprecated alias.
helps compiling util-linux-ng against klibc.
add pathnames.h include, where _PATH_MOUNTED is defined.
Signed-off-by: maximilian attems <max@stro.at>
#include "minix.h"
#include "nls.h"
+#include "pathnames.h"
#ifndef __linux__
#define volatile
int cont;
int fd;
- if ((f = setmntent (MOUNTED, "r")) == NULL)
+ if ((f = setmntent (_PATH_MOUNTED, "r")) == NULL)
return;
while ((mnt = getmntent (f)) != NULL)
if (strcmp (device_name, mnt->mnt_fsname) == 0)
* probably not correct; so we won't issue a warning based on
* it.
*/
- fd = open(MOUNTED, O_RDWR);
+ fd = open(_PATH_MOUNTED, O_RDWR);
if (fd < 0 && errno == EROFS)
return;
else
#include "blkdev.h"
#include "minix.h"
#include "nls.h"
+#include "pathnames.h"
#ifndef __GNUC__
#error "needs gcc for the bitop-__asm__'s"
FILE * f;
struct mntent * mnt;
- if ((f = setmntent (MOUNTED, "r")) == NULL)
+ if ((f = setmntent (_PATH_MOUNTED, "r")) == NULL)
return;
while ((mnt = getmntent (f)) != NULL)
if (strcmp (device_name, mnt->mnt_fsname) == 0)
#include "xstrncpy.h"
#include "nls.h"
#include "blkdev.h"
+#include "pathnames.h"
#ifdef HAVE_LIBUUID
#include <uuid/uuid.h>
FILE * f;
struct mntent * mnt;
- if ((f = setmntent (MOUNTED, "r")) == NULL)
+ if ((f = setmntent (_PATH_MOUNTED, "r")) == NULL)
return 0;
while ((mnt = getmntent (f)) != NULL)
if (strcmp (device_name, mnt->mnt_fsname) == 0)