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
4893a431
Commit
4893a431
authored
Jan 21, 2017
by
Christian Brauner
Committed by
GitHub
Jan 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1388 from trofi/master
Use AC_HEADER_MAJOR to detect major()/minor()/makedev()
parents
b7329ceb
af6824fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
0 deletions
+28
-0
configure.ac
configure.ac
+3
-0
lxclvm.c
src/lxc/bdev/lxclvm.c
+9
-0
conf.c
src/lxc/conf.c
+8
-0
lxccontainer.c
src/lxc/lxccontainer.c
+8
-0
No files found.
configure.ac
View file @
4893a431
...
@@ -640,6 +640,9 @@ AC_CHECK_DECLS([PR_GET_NO_NEW_PRIVS], [], [], [#include <sys/prctl.h>])
...
@@ -640,6 +640,9 @@ AC_CHECK_DECLS([PR_GET_NO_NEW_PRIVS], [], [], [#include <sys/prctl.h>])
# Check for some headers
# Check for some headers
AC_CHECK_HEADERS([sys/signalfd.h pty.h ifaddrs.h sys/capability.h sys/memfd.h sys/personality.h utmpx.h sys/timerfd.h])
AC_CHECK_HEADERS([sys/signalfd.h pty.h ifaddrs.h sys/capability.h sys/memfd.h sys/personality.h utmpx.h sys/timerfd.h])
# lookup major()/minor()/makedev()
AC_HEADER_MAJOR
# Check for some syscalls functions
# Check for some syscalls functions
AC_CHECK_FUNCS([setns pivot_root sethostname unshare rand_r confstr faccessat gettid memfd_create])
AC_CHECK_FUNCS([setns pivot_root sethostname unshare rand_r confstr faccessat gettid memfd_create])
...
...
src/lxc/bdev/lxclvm.c
View file @
4893a431
...
@@ -32,10 +32,19 @@
...
@@ -32,10 +32,19 @@
#include <sys/wait.h>
#include <sys/wait.h>
#include "bdev.h"
#include "bdev.h"
#include "config.h"
#include "log.h"
#include "log.h"
#include "lxclvm.h"
#include "lxclvm.h"
#include "utils.h"
#include "utils.h"
/* major()/minor() */
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#endif
#ifdef MAJOR_IN_SYSMACROS
# include <sys/sysmacros.h>
#endif
lxc_log_define
(
lxclvm
,
lxc
);
lxc_log_define
(
lxclvm
,
lxc
);
extern
char
*
dir_new_path
(
char
*
src
,
const
char
*
oldname
,
const
char
*
name
,
extern
char
*
dir_new_path
(
char
*
src
,
const
char
*
oldname
,
const
char
*
name
,
...
...
src/lxc/conf.c
View file @
4893a431
...
@@ -52,6 +52,14 @@
...
@@ -52,6 +52,14 @@
#include <sys/utsname.h>
#include <sys/utsname.h>
#include <sys/wait.h>
#include <sys/wait.h>
/* makedev() */
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#endif
#ifdef MAJOR_IN_SYSMACROS
# include <sys/sysmacros.h>
#endif
#ifdef HAVE_STATVFS
#ifdef HAVE_STATVFS
#include <sys/statvfs.h>
#include <sys/statvfs.h>
#endif
#endif
...
...
src/lxc/lxccontainer.c
View file @
4893a431
...
@@ -60,6 +60,14 @@
...
@@ -60,6 +60,14 @@
#include "utils.h"
#include "utils.h"
#include "version.h"
#include "version.h"
/* major()/minor() */
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#endif
#ifdef MAJOR_IN_SYSMACROS
# include <sys/sysmacros.h>
#endif
#if HAVE_IFADDRS_H
#if HAVE_IFADDRS_H
#include <ifaddrs.h>
#include <ifaddrs.h>
#else
#else
...
...
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