Define PRId64 and PRIu64 when missing.
Include config.h before using feature macros. Include unistd.h for getopt()
diff --git a/regress/tryopen.c b/regress/tryopen.c
index a6de267..313928a 100644
--- a/regress/tryopen.c
+++ b/regress/tryopen.c
@@ -32,15 +32,21 @@
*/
+#include "config.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifndef HAVE_GETOPT
#include "getopt.h"
#endif
#include "zip.h"
+#include "compat.h"
const char *usage = "usage: %s [-cent] file\n";