diff options
Diffstat (limited to 'ace/os_include/sys/param.h')
-rw-r--r-- | ace/os_include/sys/param.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ace/os_include/sys/param.h b/ace/os_include/sys/param.h new file mode 100644 index 00000000000..6ac0730dd5f --- /dev/null +++ b/ace/os_include/sys/param.h @@ -0,0 +1,44 @@ +/* -*- C++ -*- */ + +//============================================================================= +/** + * @file param.h + * + * $Id$ + * + * @author Douglas C. Schmidt (schmidt@cs.wustl.edu) + * @author etc + */ +//============================================================================= + +#ifndef ACE_OS_INCLUDE_SYS_PARAM_H +# define ACE_OS_INCLUDE_SYS_PARAM_H +# include "ace/pre.h" + +# include "ace/config-all.h" + +# if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +# endif /* ACE_LACKS_PRAGMA_ONCE */ + +# if !defined (ACE_LACKS_SYS_PARAM_H) +# include /**/ <sys/param.h> +# endif /* !ACE_LACKS_SYS_PARAM_H */ + +// Need to note why this is included. +//# include "ace/os_include/limits.h" + +// _MAX_PATH is in stdlib.h on windows... +# include "ace/os_include/stdlib.h" + +# if !defined (MAXPATHLEN) +# if defined (ACE_WIN32) +# define MAXPATHLEN _MAX_PATH +# elif defined (_POSIX_PATH_MAX) +# define MAXPATHLEN _POSIX_PATH_MAX +# else +# define MAXPATHLEN 1024 +# endif /* ACE_WIN32 */ +# endif /* MAXPATHLEN */ + +#endif /* ACE_OS_INCLUDE_SYS_PARAM_H */ |