summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2005-01-24 13:04:52 +0400
committerunknown <ram@gw.mysql.r18.ru>2005-01-24 13:04:52 +0400
commitfd5ea70eed911d5b1bcac1d887bb10b5937664fa (patch)
tree12b99b1c341fe92b23326d1ea91500b444d196a8 /include
parent56b1a854698e98412746164e764bf29bb435e55d (diff)
downloadmariadb-git-fd5ea70eed911d5b1bcac1d887bb10b5937664fa.tar.gz
Stick FN_REFLEN to PATH_MAX.
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index ff59f7bfc55..5b363addef2 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -530,7 +530,11 @@ typedef SOCKET_SIZE_TYPE size_socket;
#define FN_LEN 256 /* Max file name len */
#define FN_HEADLEN 253 /* Max length of filepart of file name */
#define FN_EXTLEN 20 /* Max length of extension (part of FN_LEN) */
+#ifdef PATH_MAX
+#define FN_REFLEN PATH_MAX/* Max length of full path-name */
+#else
#define FN_REFLEN 512 /* Max length of full path-name */
+#endif
#define FN_EXTCHAR '.'
#define FN_HOMELIB '~' /* ~/ is used as abbrev for home dir */
#define FN_CURLIB '.' /* ./ is used as abbrev for current dir */