move conditional PATH_MAX define to compat.h

master
szaka 2009-01-21 23:51:02 +00:00
parent 987e6f7bf9
commit faf9707864
4 changed files with 13 additions and 14 deletions

View File

@ -3,6 +3,7 @@
*
* Copyright (c) 2002 Richard Russon
* Copyright (c) 2002-2004 Anton Altaparmakov
* Copyright (c) 2008-2009 Szabolcs Szakacsits
*
* This program/include file is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
@ -26,6 +27,13 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
#ifndef HAVE_FFS
extern int ffs(int i);

View File

@ -2,7 +2,7 @@
* volume.c - NTFS volume handling code. Originated from the Linux-NTFS project.
*
* Copyright (c) 2000-2006 Anton Altaparmakov
* Copyright (c) 2002-2008 Szabolcs Szakacsits
* Copyright (c) 2002-2009 Szabolcs Szakacsits
* Copyright (c) 2004-2005 Richard Russon
*
* This program/include file is free software; you can redistribute it and/or
@ -53,6 +53,7 @@
#include <locale.h>
#endif
#include "compat.h"
#include "volume.h"
#include "attrib.h"
#include "mft.h"
@ -66,10 +67,6 @@
#include "logging.h"
#include "misc.h"
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
const char *ntfs_home =
"Ntfs-3g news, support and information: http://ntfs-3g.org\n";

View File

@ -4,6 +4,7 @@
* Copyright (c) 2005-2007 Yura Pakhuchiy
* Copyright (c) 2005 Yuval Fledel
* Copyright (c) 2006-2009 Szabolcs Szakacsits
* Copyright (c) 2007-2009 Jean-Pierre Andre
* Copyright (c) 2009 Erik Larsson
*
* This file is originated from the Linux-NTFS project.
@ -93,10 +94,6 @@
#include "ntfstime.h"
#include "misc.h"
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
typedef enum {
FSTYPE_NONE,
FSTYPE_UNKNOWN,

View File

@ -1,7 +1,7 @@
/**
* ntfs-3g.probe - Probe NTFS volume mountability
*
* Copyright (c) 2007 Szabolcs Szakacsits
* Copyright (c) 2007-2009 Szabolcs Szakacsits
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -32,13 +32,10 @@
#endif
#include <getopt.h>
#include "compat.h"
#include "volume.h"
#include "misc.h"
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
typedef enum {
PROBE_UNSET,
PROBE_READONLY,