Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
a394f952
Unverified
Commit
a394f952
authored
Jun 05, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: fix bionic builds
bionic seems to lack a definition of __S_ISTYPE(). Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
6e50e704
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
conf.c
src/lxc/conf.c
+0
-5
utils.h
src/lxc/utils.h
+5
-0
No files found.
src/lxc/conf.c
View file @
a394f952
...
@@ -172,11 +172,6 @@ static int sethostname(const char * name, size_t len)
...
@@ -172,11 +172,6 @@ static int sethostname(const char * name, size_t len)
}
}
#endif
#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
#ifndef MS_PRIVATE
#define MS_PRIVATE (1<<18)
#define MS_PRIVATE (1<<18)
#endif
#endif
...
...
src/lxc/utils.h
View file @
a394f952
...
@@ -39,6 +39,11 @@
...
@@ -39,6 +39,11 @@
#include "initutils.h"
#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 */
/* Useful macros */
/* Maximum number for 64 bit integer is a string with 21 digits: 2^64 - 1 = 21 */
/* Maximum number for 64 bit integer is a string with 21 digits: 2^64 - 1 = 21 */
#define LXC_NUMSTRLEN64 21
#define LXC_NUMSTRLEN64 21
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment