diff --git a/src/internal/sofort_driver_impl.h b/src/internal/sofort_driver_impl.h
index 5ee4952..91c6bff 100644
--- a/src/internal/sofort_driver_impl.h
+++ b/src/internal/sofort_driver_impl.h
@@ -8,6 +8,7 @@
 #include <sofort/sofort.h>
 #include "argv/argv.h"
 
+extern int sofort_main(int, char **, char **);
 extern const struct argv_option sfrt_default_options[];
 
 enum app_tags {
diff --git a/src/sofort.c b/src/sofort.c
index 52d9c27..b7cb22b 100644
--- a/src/sofort.c
+++ b/src/sofort.c
@@ -2,6 +2,7 @@
 #include <unistd.h>
 #include <sofort/sofort.h>
 #include "sofort_version.h"
+#include "sofort_driver_impl.h"
 
 #ifndef SFRT_DRIVER_FLAGS
 #define SFRT_DRIVER_FLAGS	SFRT_DRIVER_VERBOSITY_ERRORS \