From 87cc33289b0956c154f8e0c7bf9e80e369c35b72 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 28 Nov 2022 17:29:12 -0600 Subject: [PATCH] Move a header #include to the only command that will ever use it. --- lib/portability.h | 3 --- toys/pending/getopt.c | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/portability.h b/lib/portability.h index 9dd14c0c..91d20fc0 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -114,9 +114,6 @@ void *memmem(const void *haystack, size_t haystack_length, const void *needle, size_t needle_length); #endif // defined(glibc) -// getopt_long(), getopt_long_only(), and struct option. -#include - #if !defined(__GLIBC__) // POSIX basename. #include diff --git a/toys/pending/getopt.c b/toys/pending/getopt.c index dcef314b..225db579 100644 --- a/toys/pending/getopt.c +++ b/toys/pending/getopt.c @@ -22,6 +22,7 @@ config GETOPT #define FOR_getopt #include "toys.h" +#include // Everything else uses lib/args.c GLOBALS( struct arg_list *l; -- 2.39.2