summaryrefslogtreecommitdiffstats
path: root/testpar/t_posix_compliant.c
diff options
context:
space:
mode:
Diffstat (limited to 'testpar/t_posix_compliant.c')
-rw-r--r--testpar/t_posix_compliant.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/testpar/t_posix_compliant.c b/testpar/t_posix_compliant.c
index 17d7572..b863788 100644
--- a/testpar/t_posix_compliant.c
+++ b/testpar/t_posix_compliant.c
@@ -32,21 +32,23 @@
* larber@ncsa.uiuc.edu
*/
-#include <mpi.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <unistd.h>
+#include <stdio.h>
#include <string.h>
-#ifdef _POSIX_SOURCE
-#include <getopt.h>
-#endif
+#include <stdlib.h>
+#include <mpi.h>
#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]; \