aboutsummaryrefslogtreecommitdiffstats
diff options
authorAlejandro Colomar <alx@kernel.org>2025-12-24 22:41:13 +0100
committerAlejandro Colomar <alx@kernel.org>2025-12-25 02:32:11 +0100
commitbfa98f86a35f0e2cd0b1b0f75a7bd82dff2db809 (patch)
tree72ffd6563f7a75a716d52f16abe4d570ebbf5ff8
parentce5526c44868b5a971c7b7378b7f36283f0f833d (diff)
downloadman-pages-bfa98f86a35f0e2cd0b1b0f75a7bd82dff2db809.tar.gz
man/man3/getopt_long.3: EXAMPLES: Add missing include
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man3/getopt_long.35
1 files changed, 3 insertions, 2 deletions
diff --git a/man/man3/getopt_long.3 b/man/man3/getopt_long.3
index a464349fee..72668d7790 100644
--- a/man/man3/getopt_long.3
+++ b/man/man3/getopt_long.3
@@ -156,8 +156,9 @@ with most of its features.
.\" SRC BEGIN (getopt_long.c)
.EX
#include <getopt.h>
-#include <stdio.h> /* for printf */
-#include <stdlib.h> /* for exit */
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
\&
int
main(int argc, char *argv[])