conf: fix bionic builds

bionic seems to lack a definition of __S_ISTYPE(). Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 6e50e704
......@@ -172,11 +172,6 @@ static int sethostname(const char * name, size_t len)
}
#endif
/* Define __S_ISTYPE if missing from the C library */
#ifndef __S_ISTYPE
#define __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask))
#endif
#ifndef MS_PRIVATE
#define MS_PRIVATE (1<<18)
#endif
......
......@@ -39,6 +39,11 @@
#include "initutils.h"
/* Define __S_ISTYPE if missing from the C library. */
#ifndef __S_ISTYPE
#define __S_ISTYPE(mode, mask) (((mode)&S_IFMT) == (mask))
#endif
/* Useful macros */
/* Maximum number for 64 bit integer is a string with 21 digits: 2^64 - 1 = 21 */
#define LXC_NUMSTRLEN64 21
......
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