]> git.wh0rd.org - dump.git/blobdiff - compat/include/fstab.h
Copyright notice for Alcôve, for paying me to work on dump...
[dump.git] / compat / include / fstab.h
index 2ca06ece86acc551130103f91a3ba1dff48a3b5c..350fbc2d74607592be697c265d8a5d27c16d7921 100644 (file)
@@ -2,8 +2,10 @@
  *     Ported to Linux's Second Extended File System as part of the
  *     dump and restore backup suit
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
- *      Stelian Pop <pop@cybercable.fr>, 1999 
+ *     Stelian Pop <pop@cybercable.fr>, 1999-2000
+ *     Stelian Pop <pop@cybercable.fr> - Alcôve <www.alcove.fr>, 2000
  *
+ *     $Id: fstab.h,v 1.7 2000/11/10 14:42:24 stelian Exp $
  */
 
 /*
@@ -37,8 +39,6 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- *
- * $Id: fstab.h,v 1.3 1999/10/11 13:31:09 stelian Exp $
  */
 
 #ifndef _FSTAB_H_
  * if type is "rq", then use concatenation of fs_file and "quotas" to locate
  * quota file.
  */
+#ifdef __linux__
+#include <mntent.h>
+#define _PATH_FSTAB    _PATH_MNTTAB
+#endif
+#ifndef _PATH_FSTAB
 #define        _PATH_FSTAB     "/etc/fstab"
-#define        FSTAB           "/etc/fstab"    /* deprecated */
+#endif
+#define        FSTAB           _PATH_FSTAB     /* deprecated */
 
 #define FSTAB_DEF      "defaults"      /* default mount option */
 #define        FSTAB_RW        "rw"            /* read/write device */