diff --git a/src/rc/rc-logger.h b/src/rc/rc-logger.h
index 8c0cc2a..1e02f6c 100644
--- a/src/rc/rc-logger.h
+++ b/src/rc/rc-logger.h
@@ -26,8 +26,8 @@
 #ifndef RC_LOGGER_H
 #define RC_LOGGER_H
 
-pid_t rc_logger_pid;
-int rc_logger_tty;
+extern pid_t rc_logger_pid;
+extern int rc_logger_tty;
 extern bool rc_in_logger;
 
 void rc_logger_open(const char *runlevel);
