Created
October 14, 2014 04:28
-
-
Save fukamachi/96965290920e6aa11000 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cffi:define-foreign-library libevent2-pthreads | |
(:darwin (:or | |
"libevent_pthreads.dylib" | |
; brew's install of libevent on Mac OX X | |
"/usr/local/lib/libevent_pthreads.dylib" | |
; macports | |
"/opt/local/lib/libevent_pthreads.dylib")) | |
(:unix (:or "/usr/local/lib/event2/libevent_pthreads.so" | |
"libevent_pthreads.so" | |
"libevent_pthreads-2.0.so.5" | |
"/usr/lib/libevent_pthreads.so" | |
"/usr/local/lib/libevent_pthreads.so")) | |
(t (:default "libevent_pthreads"))) | |
#+unix | |
(cffi:use-foreign-library libevent2-pthreads) | |
(as:enable-threading-support) | |
;; as:with-event-loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment