From d642eede9a93788bb5959800d8e1918e443ff458 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Tue, 12 Apr 2016 21:01:50 -0700 Subject: [PATCH] timepng: fix builds when there is no read support Signed-off-by: John Bowler --- contrib/libtests/timepng.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/libtests/timepng.c b/contrib/libtests/timepng.c index c22ab986e..6eb3d4a64 100644 --- a/contrib/libtests/timepng.c +++ b/contrib/libtests/timepng.c @@ -36,6 +36,7 @@ # include "../../png.h" #endif +#ifdef PNG_READ_SUPPORTED typedef struct { FILE *input; @@ -527,3 +528,6 @@ int main(int argc, char **argv) /* Exit code 0 on success. */ return ok == 0; } +#else /* !READ */ +int main(void) { return 99; } +#endif /* !READ */