diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 0870e31817f41355746311c9d8933a03f8933462..ee16d7805d76aa601043346940120894e8be2a13 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -29,6 +29,7 @@
 #include <zlib.h>
 #endif
 #if CONFIG_LZMA
+#define LZMA_API_STATIC
 #include <lzma.h>
 #endif