HADOOP-11974. Fix FIONREAD #include on Solaris (Alan Burlison via Colin P. McCabe)
(cherry picked from commit 81f3644376
)
This commit is contained in:
parent
2b99310c32
commit
4da63e5f5f
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue