Commit 7fb6c54e authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Guard dlfcn include correctly

Summary: It doesn't exist on Windows, so only include it when it's acutally used.

Reviewed By: yfeldblum

Differential Revision: D10861997

fbshipit-source-id: 04156a09f2fab83ae3b958c1cbcd41c347d5f9e8
parent 76cf8b58
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <folly/io/async/test/BlockingSocket.h> #include <folly/io/async/test/BlockingSocket.h>
#include <dlfcn.h>
#include <fcntl.h> #include <fcntl.h>
#include <signal.h> #include <signal.h>
#include <sys/types.h> #include <sys/types.h>
...@@ -42,6 +41,10 @@ ...@@ -42,6 +41,10 @@
#include <set> #include <set>
#include <thread> #include <thread>
#ifdef __linux__
#include <dlfcn.h>
#endif
#if FOLLY_OPENSSL_IS_110 #if FOLLY_OPENSSL_IS_110
#include <openssl/async.h> #include <openssl/async.h>
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment