diff --git a/src/fsort_template.h b/src/fsort_template.h
index 565731723c898016daf5d9eaf062b391977b4572..043a8885888cec010cc861f58fc3c5f8bc7bd128 100644
--- a/src/fsort_template.h
+++ b/src/fsort_template.h
@@ -4,6 +4,8 @@
 || for more information.
 */
 
+#include "stuff.h"
+
 #ifdef SORT_BY_INDEX
 /* Sort by index. */