Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 1 | From 6ede7d01b18a4d9eeaccd25f5c1ab9985cb65307 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 12 Feb 2023 21:25:04 -0800 |
| 4 | Subject: [PATCH] zlib: Include unistd.h for open/close C APIs |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 9 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 10 | --- |
| 11 | third_party/zlib/gzguts.h | 1 + |
| 12 | 1 file changed, 1 insertion(+) |
| 13 | |
| 14 | diff --git a/third_party/zlib/gzguts.h b/third_party/zlib/gzguts.h |
| 15 | index 57faf37..3c700c2 100644 |
| 16 | --- a/third_party/zlib/gzguts.h |
| 17 | +++ b/third_party/zlib/gzguts.h |
| 18 | @@ -19,6 +19,7 @@ |
| 19 | #endif |
| 20 | |
| 21 | #include <stdio.h> |
| 22 | +#include <unistd.h> |
| 23 | #include "zlib.h" |
| 24 | #ifdef STDC |
| 25 | # include <string.h> |