Fix 'include' issue
[akaros.git] / kern / include / err.h
index 6b10c40..7c9f14c 100644 (file)
                     int curindex = 0;
 #define waserror() setjmp(&(errpush(errstack, ARRAY_SIZE(errstack), &curindex, \
                                                                        &prev_errbuf)->jmpbuf))
+
+/* In syscall.h, but want to avoid circular include issues. */
+extern void set_error(int error, const char *fmt, ...);
+extern struct errbuf *get_cur_errbuf(void);
+
 #define error(e, x, ...)                                                                                               \
        do {                                                                                                                            \
                set_error(e, x, ##__VA_ARGS__);                                                                 \