]> granicus.if.org Git - curl/commitdiff
rand: added missing #ifdef HAVE_FCNTL_H around fcntl.h header
authorSergii Pylypenko <x.pelya.x@gmail.com>
Thu, 23 Feb 2017 20:07:04 +0000 (22:07 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Feb 2017 21:44:16 +0000 (22:44 +0100)
Closes #1285

lib/rand.c

index a51951ceafbdb28c84389a14d0bc1afafb9594f4..4da37b9dc4b19a69b7122b2e2d61b3d53fc12aff 100644 (file)
@@ -22,7 +22,9 @@
 
 #include "curl_setup.h"
 
+#ifdef HAVE_FCNTL_H
 #include <fcntl.h>
+#endif
 
 #include <curl/curl.h>
 #include "vtls/vtls.h"