Commits

Anonymous committed f1e08cd

fixed build without thread support

Comments (0)

Files changed (3)

opal/mca/db/print/db_print.c

 #include "opal_config.h"
 #include "opal/constants.h"
 
+#include <time.h>
 #include <string.h>
 #include <sys/types.h>
 #ifdef HAVE_LIMITS_H

opal/runtime/opal_info_support.c

 #include <unistd.h>
 #endif
 
+#include <errno.h>
+
 #include "opal/class/opal_list.h"
 #include "opal/class/opal_pointer_array.h"
 

opal/threads/thread.c

 static void opal_thread_construct(opal_thread_t *t)
 {
     t->t_run = 0;
-#ifdef OPAL_HAVE_POSIX_THREADS
+#if OPAL_HAVE_POSIX_THREADS
     t->t_handle = (pthread_t) -1;
 #elif OPAL_HAVE_SOLARIS_THREADS
     t->t_handle = (thread_t) -1;
 #endif
 }
 
-#ifdef OPAL_HAVE_POSIX_THREADS
+#if OPAL_HAVE_POSIX_THREADS
 
 /************************************************************************
  * POSIX threads
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.