diff options
-rw-r--r-- | Makethird | 2 | ||||
-rw-r--r-- | fitz/base_time.c | 2 | ||||
-rw-r--r-- | fitz/fitz.h | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -70,7 +70,7 @@ OPENJPEG_LIB=$(OBJDIR)/libopenjpeg.a $(OPENJPEG_LIB): $(OPENJPEG_OBJ) $(AR_CMD) $(OBJDIR)/opj_%.o: $(openjpeg_dir)/%.c - $(CC_CMD) + $(CC_CMD) -DOPJ_STATIC endif diff --git a/fitz/base_time.c b/fitz/base_time.c index 425c6440..a369099c 100644 --- a/fitz/base_time.c +++ b/fitz/base_time.c @@ -10,6 +10,8 @@ #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL #endif +struct timeval; + int gettimeofday(struct timeval *tv, struct timezone *tz) { FILETIME ft; diff --git a/fitz/fitz.h b/fitz/fitz.h index 3a6087e6..fb3de145 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -42,7 +42,9 @@ int gettimeofday(struct timeval *tv, struct timezone *tz); #include <unistd.h> +#ifndef O_BINARY #define O_BINARY 0 +#endif #endif |