projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added few more stubs so that control reaches to DestroyDevice().
[mesa.git]
/
src
/
util
/
u_thread.h
diff --git
a/src/util/u_thread.h
b/src/util/u_thread.h
index 5bb06608fc91f67b6f940d0a63a5e29ff0504e5e..af44bcfc1bd6c0ab97b9ca27e146e49a8c4966f8 100644
(file)
--- a/
src/util/u_thread.h
+++ b/
src/util/u_thread.h
@@
-35,7
+35,7
@@
#ifdef HAVE_PTHREAD
#include <signal.h>
#ifdef HAVE_PTHREAD
#include <signal.h>
-#ifdef
PTHREAD_SETAFFINITY_IN_NP_HEADER
+#ifdef
HAVE_PTHREAD_NP_H
#include <pthread_np.h>
#endif
#endif
#include <pthread_np.h>
#endif
#endif
@@
-45,6
+45,10
@@
#endif
#ifdef __FreeBSD__
#endif
#ifdef __FreeBSD__
+/* pthread_np.h -> sys/param.h -> machine/param.h
+ * - defines ALIGN which clashes with our ALIGN
+ */
+#undef ALIGN
#define cpu_set_t cpuset_t
#endif
#define cpu_set_t cpuset_t
#endif
@@
-84,7
+88,7
@@
static inline void u_thread_setname( const char *name )
#elif DETECT_OS_HAIKU
rename_thread(find_thread(NULL), name);
#else
#elif DETECT_OS_HAIKU
rename_thread(find_thread(NULL), name);
#else
-#
error
Not sure how to call pthread_setname_np
+#
warning
Not sure how to call pthread_setname_np
#endif
#endif
(void)name;
#endif
#endif
(void)name;