* include/limits.h (PATH_MAX): Guard with #ifndef __STRICT_ANSI__.
* include/sys/param.h (MAXPATHLEN): Make sure PATH_MAX is defined.
This commit is contained in:
parent
d8dbfe9518
commit
eb9dc9d068
|
@ -20,6 +20,8 @@
|
||||||
(_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto.
|
(_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto.
|
||||||
(_wrename, _wremove, _wperror, _wpopen): Ditto.
|
(_wrename, _wremove, _wperror, _wpopen): Ditto.
|
||||||
(_lock_file, _unlock_file): Declare.
|
(_lock_file, _unlock_file): Declare.
|
||||||
|
* include/limits.h (PATH_MAX): Guard with #ifndef __STRICT_ANSI__.
|
||||||
|
* include/sys/param.h (MAXPATHLEN): Make sure PATH_MAX is defined.
|
||||||
|
|
||||||
2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
|
2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,9 @@
|
||||||
* are semantically identical, with a limit of 259 characters for the
|
* are semantically identical, with a limit of 259 characters for the
|
||||||
* path name, plus one for a terminating NUL, for a total of 260.
|
* path name, plus one for a terminating NUL, for a total of 260.
|
||||||
*/
|
*/
|
||||||
#define PATH_MAX 260
|
#ifndef __STRICT_ANSI__
|
||||||
|
# define PATH_MAX 260
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Characteristics of the char data type.
|
* Characteristics of the char data type.
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
#define LITTLE_ENDIAN 1234
|
#define LITTLE_ENDIAN 1234
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
|
|
||||||
|
#ifdef PATH_MAX
|
||||||
#define MAXPATHLEN PATH_MAX
|
#define MAXPATHLEN PATH_MAX
|
||||||
|
#else
|
||||||
|
#define MAXPATHLEN 260
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue