Add missing include statement for ssize_t
Compilation of code which uses libtiff fails when ssize_t is undefined: openjpeg/thirdparty/libtiff/tif_config.h:324:22: error: unknown type name ‘ssize_t’ #define TIFF_SSIZE_T ssize_t ^ openjpeg/thirdparty/libtiff/tiffio.h:67:9: note: in expansion of macro ‘TIFF_SSIZE_T’ typedef TIFF_SSIZE_T tmsize_t; ^ Add the missing include statement (not for Windows which does not provide unistd.h). Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
8f9905936c
commit
6c55ffd2f7
|
@ -42,6 +42,9 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef OPJ_HAVE_LIBTIFF
|
#ifndef OPJ_HAVE_LIBTIFF
|
||||||
# error OPJ_HAVE_LIBTIFF_NOT_DEFINED
|
# error OPJ_HAVE_LIBTIFF_NOT_DEFINED
|
||||||
|
|
|
@ -37,6 +37,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "opj_apps_config.h"
|
#include "opj_apps_config.h"
|
||||||
#include "opj_getopt.h"
|
#include "opj_getopt.h"
|
||||||
|
|
Loading…
Reference in New Issue