mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 07:23:23 +00:00
conf: fix bionic builds
bionic seems to lack a definition of __S_ISTYPE(). Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
6e50e70437
commit
a394f952cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user