aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergii Pylypenko <x.pelya.x@gmail.com>2017-02-23 22:07:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-02-23 22:44:16 +0100
commit53ab183c1a530391b6012e0171600bc69ec58170 (patch)
treedacf3a7c2b5e124373e4a82b7891d1a670b4977c
parented74c6442d8f46cae448e8b90130d006eb6169f5 (diff)
rand: added missing #ifdef HAVE_FCNTL_H around fcntl.h header
Closes #1285
-rw-r--r--lib/rand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rand.c b/lib/rand.c
index a51951cea..4da37b9dc 100644
--- a/lib/rand.c
+++ b/lib/rand.c
@@ -22,7 +22,9 @@
#include "curl_setup.h"
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
#include <curl/curl.h>
#include "vtls/vtls.h"