macro: add PATH_MAX

parent 27025c49
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define __LXC_MACRO_H #define __LXC_MACRO_H
#include <asm/types.h> #include <asm/types.h>
#include <limits.h>
#include <linux/if_link.h> #include <linux/if_link.h>
#include <linux/loop.h> #include <linux/loop.h>
#include <linux/netlink.h> #include <linux/netlink.h>
...@@ -33,6 +34,10 @@ ...@@ -33,6 +34,10 @@
#include <sys/un.h> #include <sys/un.h>
#include <unistd.h> #include <unistd.h>
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
/* Define __S_ISTYPE if missing from the C library. */ /* Define __S_ISTYPE if missing from the C library. */
#ifndef __S_ISTYPE #ifndef __S_ISTYPE
#define __S_ISTYPE(mode, mask) (((mode)&S_IFMT) == (mask)) #define __S_ISTYPE(mode, mask) (((mode)&S_IFMT) == (mask))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment