diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2011-09-09 07:32:40 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2011-09-09 07:32:40 +0000 |
commit | 03a0dc36b837f649ced953775a337368fdd66f1f (patch) | |
tree | 565189a68bb7aa23d903fc5308f7d9ad67044fbe /devel/libdispatch/files | |
parent | - Update to 0.91 (diff) |
- Update to revision 210.
- Use BlocksRuntime and clang from base if present.
Diffstat (limited to 'devel/libdispatch/files')
-rw-r--r-- | devel/libdispatch/files/patch-configure.ac | 22 | ||||
-rw-r--r-- | devel/libdispatch/files/patch-src_shims_time.h | 13 |
2 files changed, 35 insertions, 0 deletions
diff --git a/devel/libdispatch/files/patch-configure.ac b/devel/libdispatch/files/patch-configure.ac new file mode 100644 index 000000000000..cea80713c323 --- /dev/null +++ b/devel/libdispatch/files/patch-configure.ac @@ -0,0 +1,22 @@ +--- configure.ac.orig 2011-09-08 23:48:16.000000000 -0700 ++++ configure.ac 2011-09-08 23:48:28.000000000 -0700 +@@ -137,7 +137,18 @@ + # Find libraries we will need + # + AC_SEARCH_LIBS(clock_gettime, rt) +-AC_SEARCH_LIBS(pthread_create, pthread) ++ ++# ++# Find how to enable threads ++# ++case $host in ++*freebsd*) ++ LIBS="${LIBS} -pthread" ++ ;; ++*) ++ AC_SEARCH_LIBS(pthread_create, pthread) ++ ;; ++esac + + # + # Prefer native kqueue(2); otherwise use libkqueue if present. diff --git a/devel/libdispatch/files/patch-src_shims_time.h b/devel/libdispatch/files/patch-src_shims_time.h new file mode 100644 index 000000000000..f012effd0b58 --- /dev/null +++ b/devel/libdispatch/files/patch-src_shims_time.h @@ -0,0 +1,13 @@ +--- src/shims/time.h.orig 2011-09-08 23:49:45.000000000 -0700 ++++ src/shims/time.h 2011-09-08 23:49:56.000000000 -0700 +@@ -52,8 +52,8 @@ + bool ratio_1_to_1; + dispatch_once_t pred; + } _dispatch_host_time_data_s; +-__private_extern__ _dispatch_host_time_data_s _dispatch_host_time_data; +-__private_extern__ void _dispatch_get_host_time_init(void *context); ++extern _dispatch_host_time_data_s _dispatch_host_time_data; ++extern void _dispatch_get_host_time_init(void *context); + + static inline uint64_t + _dispatch_time_mach2nano(uint64_t machtime) |