是否是你的/usr/include/linux目录下面的头文件有错误?
这些文件都是在glibc-kernelheaders-x.x.x.rpm里面安装的
你可以检查它是否完整。
rpm -V glibc-kernelheaders
我使用的是2.6.9的Kernel
INT_MIN和INT_MAX定义在/usr/include/linux/kernel.h
#define INT_MAX ((int)(~0U>>1))
#define INT_MIN (-INT_MAX - 1)
#define UINT_MAX (~0U)
#define LONG_MAX ((long)(~0UL>>1))
#define LONG_MIN (-LONG_MAX - 1)
#define ULONG_MAX (~0UL)
类型struct nf_hook_ops声明在/usr/include/linux/netfilter.h
struct nf_hook_ops
{
struct list_head list;
/* User fills in from here down. */
nf_hookfn *hook;
struct module *owner;
int pf;
int hooknum;
/* Hooks are ordered in ascending priority. */
int priority;
};