summaryrefslogtreecommitdiff
path: root/manual/examples
diff options
context:
space:
mode:
Diffstat (limited to 'manual/examples')
-rw-r--r--manual/examples/longopt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/manual/examples/longopt.c b/manual/examples/longopt.c
index d5c841f24a..9d6bd53c0f 100644
--- a/manual/examples/longopt.c
+++ b/manual/examples/longopt.c
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <getopt.h>
/* Flag set by @samp{--verbose}. */
static int verbose_flag;