提交 f1bdf1d5 编写于 作者: A Andy Polyakov

#include <limits.h> is required at least on HP-UX and IRIX. And what's

with HP-UX offering 14 for NAME_MAX?
上级 d58caee7
......@@ -27,6 +27,7 @@
#include <stddef.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
......@@ -35,6 +36,12 @@
#include "LPdir.h"
#endif
#if defined(NAME_MAX) && NAME_MAX<255
/* HP-UX offers 14 for NAME_MAX, which is far from enough */
# undef NAME_MAX
# define NAME_MAX 255
#endif
struct LP_dir_context_st
{
DIR *dir;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册