--- src/histedit.c.orig	2014-09-30 07:57:27.000000000 -0300
+++ src/histedit.c	2016-11-21 16:07:16.000000000 -0300
@@ -39,6 +39,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <getopt.h>
 /*
  * Editline and history functions (and glue).
  */
