chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v231.2: basic/stdio-util.h must include parse-printf-format.h instead of printf.h
[elogind.git]
/
src
/
basic
/
virt.h
diff --git
a/src/basic/virt.h
b/src/basic/virt.h
index feb47d50e37eef578addb8e43431c59296761d21..1d88ab9ab681d8bc5bcd7eeaa6fdec2e23f3fd8c 100644
(file)
--- a/
src/basic/virt.h
+++ b/
src/basic/virt.h
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
#pragma once
/***
#pragma once
/***
@@
-56,6
+54,7
@@
enum {
_VIRTUALIZATION_INVALID = -1
};
_VIRTUALIZATION_INVALID = -1
};
+#if 0 /// UNNEEDED by elogind
static inline bool VIRTUALIZATION_IS_VM(int x) {
return x >= VIRTUALIZATION_VM_FIRST && x <= VIRTUALIZATION_VM_LAST;
}
static inline bool VIRTUALIZATION_IS_VM(int x) {
return x >= VIRTUALIZATION_VM_FIRST && x <= VIRTUALIZATION_VM_LAST;
}
@@
-65,6
+64,7
@@
static inline bool VIRTUALIZATION_IS_CONTAINER(int x) {
}
int detect_vm(void);
}
int detect_vm(void);
+#endif // 0
int detect_container(void);
#if 0 /// UNNEEDED by elogind
int detect_virtualization(void);
int detect_container(void);
#if 0 /// UNNEEDED by elogind
int detect_virtualization(void);