summaryrefslogtreecommitdiffstats
path: root/initd/init.h
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-11-28 01:27:57 +0100
committerJohn Crispin <blogic@openwrt.org>2014-12-02 12:11:12 +0100
commite1a27d486c2374f46abd264f3fd6561815155ebd (patch)
treef595e0e069e11a3b7ece4c2d0cb585056d4b8b49 /initd/init.h
parent02e1a4eac725aaae10c119ec2ec20d0da4a2c958 (diff)
downloadunitd-e1a27d486c2374f46abd264f3fd6561815155ebd.tar
unitd-e1a27d486c2374f46abd264f3fd6561815155ebd.zip
add support for zram compressed tmpfs
Signed-off-by: John Crispin <blogic@openwrt.org>
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