Bug fix: --disable-j2k option
authorColin Clark <colin.clark@cclark.uk>
Sun, 23 Feb 2020 13:04:52 +0000 (13:04 +0000)
committerColin Clark <colin.clark@cclark.uk>
Sun, 23 Feb 2020 13:04:52 +0000 (13:04 +0000)
Ensure that sysinfo.h is not referenced when --disable-j2k option is
used.

src/image_load_j2k.c

index c7ea0cc..8e92c2d 100644 (file)
@@ -25,8 +25,9 @@
 
 #include "misc.h"
 
-#include <sys/sysinfo.h>
 #ifdef HAVE_J2K
+
+#include <sys/sysinfo.h>
 #include "openjpeg.h"
 
 typedef struct _ImageLoaderJ2K ImageLoaderJ2K;