AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(top_srcdir)/include
-DEFAULT_INCLUDES =
-
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
sbin_PROGRAMS = losetup swapon
man_MANS = fstab.5 nfs.5 mount.8 swapoff.8 swapon.8 umount.8 losetup.8
-MNTHDRS = fstab.h linux_fs.h mntent.h mount_constants.h my_dev_t.h paths.h \
- get_label_uuid.h lomount.h mount_blkid.h mount_guess_fstype.h \
- nfs_mount4.h realpath.h xmalloc.h getusername.h loop.h mount_by_label.h \
- mount_guess_rootdev.h nfsmount.h sundries.h
+MNTHDRS = fstab.h linux_fs.h mount_mntent.h mount_constants.h my_dev_t.h \
+ mount_paths.h get_label_uuid.h lomount.h mount_blkid.h \
+ mount_guess_fstype.h nfs_mount4.h realpath.h xmalloc.h \
+ getusername.h loop.h mount_by_label.h mount_guess_rootdev.h \
+ nfsmount.h sundries.h
-mount_SOURCES = mount.c fstab.c sundries.c xmalloc.c realpath.c mntent.c \
+mount_SOURCES = mount.c fstab.c sundries.c xmalloc.c realpath.c mount_mntent.c \
get_label_uuid.c mount_by_label.c mount_blkid.c mount_guess_fstype.c \
getusername.c \
nfsmount.c nfsmount_xdr.c nfsmount_clnt.c \
mount_LDADD = $(top_srcdir)/lib/libenv.a $(top_srcdir)/lib/libsetproctitle.a
-umount_SOURCES = umount.c fstab.c sundries.c xmalloc.c realpath.c mntent.c \
+umount_SOURCES = umount.c fstab.c sundries.c xmalloc.c realpath.c mount_mntent.c \
getusername.c get_label_uuid.c mount_by_label.c mount_blkid.c \
lomount.c \
$(MNTHDRS)
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
-#include "mntent.h"
+#include "mount_mntent.h"
#include "fstab.h"
#include "sundries.h"
#include "xmalloc.h"
#include "mount_blkid.h"
-#include "paths.h"
+#include "mount_paths.h"
#include "nls.h"
#define streq(s, t) (strcmp ((s), (t)) == 0)
-#include "mntent.h"
+#include "mount_mntent.h"
int mtab_is_writable(void);
int mtab_does_not_exist(void);
int is_mounted_once(const char *name);
#include <sys/wait.h>
#include <sys/mount.h>
+#include <mntent.h>
+#include <paths.h>
+
#include "mount_blkid.h"
#include "mount_constants.h"
#include "sundries.h"
#include "xmalloc.h"
-#include "mntent.h"
+#include "mount_mntent.h"
#include "fstab.h"
#include "lomount.h"
#include "loop.h"
#include "mount_guess_fstype.h"
#include "mount_by_label.h"
#include "getusername.h"
-#include "paths.h"
+#include "mount_paths.h"
#include "env.h"
#include "nls.h"
#include <string.h> /* for index */
#include <ctype.h> /* for isdigit */
#include <sys/stat.h> /* for umask */
-#include "mntent.h"
+#include "mount_mntent.h"
#include "sundries.h" /* for xmalloc */
#include "nls.h"
-#ifndef MY_MNTENT_H
-#define MY_MNTENT_H
+#ifndef MOUNT_MNTENT_H
+#define MOUNT_MNTENT_H
struct my_mntent {
const char *mnt_fsname;
int my_addmntent (mntFILE *mfp, struct my_mntent *mnt);
struct my_mntent *my_getmntent (mntFILE *mfp);
-#endif
+#endif /* MOUNT_MNTENT_H */
+#ifndef MOUNT_PATHS_H
+#define MOUNT_PATHS_H
+
#include <mntent.h>
#define _PATH_FSTAB "/etc/fstab"
#ifdef _PATH_MOUNTED
#define MOUNTED_TEMP "/etc/mtab.tmp"
#endif
#define LOCK_TIMEOUT 10
+
+#endif /* MOUNT_PATHS_H */