projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for zram compressed tmpfs
[project/procd.git]
/
initd
/
init.h
diff --git
a/initd/init.h
b/initd/init.h
index
1321cf8
..
274645b
100644
(file)
--- a/
initd/init.h
+++ b/
initd/init.h
@@
-14,10
+14,19
@@
#ifndef _INIT_H__
#define _INIT_H__
#ifndef _INIT_H__
#define _INIT_H__
+#include <errno.h>
+
#include "../log.h"
void preinit(void);
void early(void);
int mkdev(const char *progname, int progmode);
#include "../log.h"
void preinit(void);
void early(void);
int mkdev(const char *progname, int progmode);
+#ifdef ZRAM_TMPFS
+int mount_zram_on_tmp(void);
+#else
+static inline int mount_zram_on_tmp(void) {
+ return -ENOSYS;
+}
+#endif
#endif
#endif