Include limits.h in IOVec.h.
authorMichael Lee <mzlee@fb.com>
Thu, 12 May 2016 16:44:29 +0000 (09:44 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Thu, 12 May 2016 16:50:34 +0000 (09:50 -0700)
Summary:
According to the POSIX definition, IOV_MAX is defined in
limits.h. Given that IOVec.h is used to provide IOV_MAX and similar,
it seems like we should add limits.h as well.

Differential Revision: D3291996

fbshipit-source-id: 238140ebef7b1b90a28f3a67a25c5f5863538fc7

folly/portability/IOVec.h

index 74e48098865a60e5487fecb61abc8a3f793f2cd7..42116ff18460c1aa032fd31203e2d6f67b5d1805 100755 (executable)
@@ -19,6 +19,7 @@
 // This file only exists because without it there would be
 // a circular dependency between SysUio.h, Sockets.h, and Unistd.h
 #ifndef _WIN32
+#include <limits.h>
 #include <sys/uio.h>
 #else
 #include <stdlib.h>