HADOOP-11974. Fix FIONREAD #include on Solaris (Alan Burlison via Colin P. McCabe)

(cherry picked from commit 81f3644376)
This commit is contained in:
Colin Patrick Mccabe 2015-07-06 12:56:34 -07:00
parent 2b99310c32
commit 4da63e5f5f
2 changed files with 11 additions and 1 deletions

View File

@ -175,6 +175,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-12045. Enable LocalFileSystem#setTimes to change atime.
(Kazuho Fujii via cnauroth)
HADOOP-11974. Fix FIONREAD #include on Solaris (Alan Burlison via Colin P.
McCabe)
OPTIMIZATIONS
HADOOP-11785. Reduce the number of listStatus operation in distcp

View File

@ -31,7 +31,14 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h> /* for FIONREAD */
/* For FIONREAD */
#if defined(__sun)
#include <sys/filio.h>
#else
#include <sys/ioctl.h>
#endif
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>