summaryrefslogtreecommitdiffstats
path: root/initd/init.h
diff options
context:
space:
mode:
Diffstat (limited to 'initd/init.h')
-rw-r--r--initd/init.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/initd/init.h b/initd/init.h
index 1321cf8..274645b 100644
--- a/initd/init.h
+++ b/initd/init.h
@@ -14,10 +14,19 @@
#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);
+#ifdef ZRAM_TMPFS
+int mount_zram_on_tmp(void);
+#else
+static inline int mount_zram_on_tmp(void) {
+ return -ENOSYS;
+}
+#endif
#endif