diff --git a/testpar/t_posix_compliant.c b/testpar/t_posix_compliant.c index 17d7572699..b863788d8a 100644 --- a/testpar/t_posix_compliant.c +++ b/testpar/t_posix_compliant.c @@ -32,21 +32,23 @@ * larber@ncsa.uiuc.edu */ -#include -#include -#include #include +#include #include -#ifdef _POSIX_SOURCE -#include -#endif +#include +#include #include "h5test.h" - static char* testfile = NULL; static int err_flag = 0; static int max_err_print = 5; +/* globals needed for getopt + * Although they *should* be defined in unistd.h */ +extern char *optarg; +extern int optind, opterr; + + #define CHECK_SUCCESS(res) \ { \ char err_got[MPI_MAX_ERROR_STRING]; \