diff --git a/popt/findme.c b/popt/findme.c
index ac4cbae..65f6ebc 100644
--- a/popt/findme.c
+++ b/popt/findme.c
@@ -9,6 +9,8 @@
 #include "system.h"
 #include "findme.h"
 
+#include <alloca.h>
+
 const char * findProgramPath(const char * argv0)
 {
     char * path = getenv("PATH");