Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From faec0206611f8ea4ca6f70987866077ac8c3c6c1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 2 Sep 2022 21:24:27 -0700 |
| 4 | Subject: [PATCH] getopt: Include string.h for strcmp/stcncmp functions |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | compat/getopt.c | 1 + |
| 11 | 1 file changed, 1 insertion(+) |
| 12 | |
| 13 | diff --git a/compat/getopt.c b/compat/getopt.c |
| 14 | index 752f28a..9b984b4 100644 |
| 15 | --- a/compat/getopt.c |
| 16 | +++ b/compat/getopt.c |
| 17 | @@ -43,6 +43,7 @@ |
| 18 | #endif |
| 19 | |
| 20 | #include <stdio.h> |
| 21 | +#include <string.h> /* strcmp */ |
| 22 | |
| 23 | /* Comment out all this code if we are using the GNU C Library, and are not |
| 24 | actually compiling the library itself. This code is part of the GNU C |
| 25 | -- |
| 26 | 2.37.3 |
| 27 | |