From cbd71793f58c0eda8128f799d415c56e5c64eaa5 Mon Sep 17 00:00:00 2001
From: Brian Ledger <[EMAIL REDACTED]>
Date: Fri, 3 Jun 2022 21:23:51 -0400
Subject: [PATCH] Include stdlib.h in tif_lzw.c.
In `tif_lzw.c`, a call is made to `_byteswap_uint64`. This is declared in `stdlib.h`. `stdlib.h` is not included in `tib_lzw.c`, so a name error may occur.
This change adds `#include stdlib.h` to `tif_lzw.c`, to prevent a name error from occuring when `stdlib.h` is not included.
---
libtiff/tif_lzw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libtiff/tif_lzw.c b/libtiff/tif_lzw.c
index 096824d2..8c3205f8 100644
--- a/libtiff/tif_lzw.c
+++ b/libtiff/tif_lzw.c
@@ -39,6 +39,7 @@
#include <stdbool.h>
#include <stdio.h>
+#include <stdlib.h>
/* Select the plausible largest natural integer type for the architecture */
#define SIZEOF_WORDTYPE SIZEOF_SIZE_T