Commit 4b497b82 authored by Rosen Penev's avatar Rosen Penev Committed by Facebook Github Bot

Get rid of deprecated headers (#1254)

Summary:
Found with modernize-deprecated-headers

Note that C++14 deprecated these.
Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
Pull Request resolved: https://github.com/facebook/folly/pull/1254

Reviewed By: Orvid

Differential Revision: D18369623

Pulled By: yfeldblum

fbshipit-source-id: e824bc5474f94fa4fe359ac6a4899eeaaddbb13b
parent c811498a
......@@ -20,7 +20,7 @@
#include <chrono>
#include <time.h>
#include <ctime>
#ifndef _WIN32
#define _GNU_SOURCE 1
......
......@@ -18,10 +18,10 @@
#include <folly/ScopeGuard.h>
#include <folly/hash/Hash.h>
#include <folly/portability/SysSyscall.h>
#include <stdint.h>
#include <string.h>
#include <array>
#include <cerrno>
#include <cstdint>
#include <cstring>
#include <folly/synchronization/ParkingLot.h>
......
......@@ -27,9 +27,9 @@
#include <folly/portability/Unistd.h>
#include <folly/synchronization/CallOnce.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <climits>
#include <cstdio>
#include <cstring>
#include <utility>
namespace folly {
......
......@@ -16,7 +16,7 @@
#include <folly/executors/ManualExecutor.h>
#include <string.h>
#include <cstring>
#include <string>
#include <tuple>
......
......@@ -16,7 +16,7 @@
#include <folly/experimental/QuotientMultiSet.h>
#include <math.h>
#include <cmath>
#include <folly/Math.h>
......
......@@ -16,7 +16,7 @@
#include <folly/fibers/FiberManagerInternal.h>
#include <signal.h>
#include <csignal>
#include <cassert>
#include <stdexcept>
......
......@@ -19,7 +19,7 @@
#ifndef _WIN32
#include <dlfcn.h>
#endif
#include <signal.h>
#include <csignal>
#include <iostream>
#include <mutex>
......
......@@ -16,7 +16,7 @@
#include <folly/io/IOBufQueue.h>
#include <string.h>
#include <cstring>
#include <stdexcept>
......
......@@ -19,9 +19,9 @@
#include <folly/io/async/EventBase.h>
#include <folly/portability/Sockets.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <cerrno>
#include <chrono>
#include <memory>
......
......@@ -31,9 +31,9 @@
#include <folly/portability/Sockets.h>
#include <folly/portability/Unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <cerrno>
#include <cstring>
namespace folly {
......
......@@ -30,9 +30,9 @@
#include <folly/portability/Unistd.h>
#include <boost/preprocessor/control/if.hpp>
#include <errno.h>
#include <limits.h>
#include <sys/types.h>
#include <cerrno>
#include <climits>
#include <sstream>
#include <thread>
......
......@@ -20,8 +20,8 @@
#include <folly/io/async/Request.h>
#include <folly/net/NetworkSocket.h>
#include <assert.h>
#include <glog/logging.h>
#include <cassert>
namespace folly {
......
......@@ -23,7 +23,7 @@
#include <folly/portability/Unistd.h>
#include <boost/preprocessor/control/if.hpp>
#include <errno.h>
#include <cerrno>
// Due to the way kernel headers are included, this may or may not be defined.
// Number pulled from 3.10 kernel headers.
......
......@@ -18,7 +18,7 @@
#include <folly/String.h>
#include <folly/io/async/EventBase.h>
#include <assert.h>
#include <cassert>
namespace folly {
......
......@@ -22,7 +22,7 @@
#include <folly/portability/Sockets.h>
#include <folly/portability/Unistd.h>
#include <errno.h>
#include <cerrno>
#include <stdexcept>
namespace folly {
......
......@@ -20,10 +20,10 @@
#include <folly/io/async/test/TimeUtil.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <cerrno>
#ifdef __linux__
#include <sys/utsname.h>
#endif
......
......@@ -16,8 +16,8 @@
#include <folly/net/NetOps.h>
#include <errno.h>
#include <fcntl.h>
#include <cerrno>
#include <cstddef>
......
......@@ -16,7 +16,7 @@
#include <folly/portability/Libgen.h>
#include <string.h>
#include <cstring>
namespace folly {
namespace portability {
......
......@@ -18,7 +18,7 @@
#include <folly/portability/Windows.h>
#include <errno.h>
#include <cerrno>
#include <mutex>
#ifdef _WIN32
......
......@@ -16,7 +16,7 @@
#include <folly/portability/SysResource.h>
#include <errno.h>
#include <cerrno>
#ifdef _WIN32
#include <folly/portability/Windows.h>
......
......@@ -16,8 +16,8 @@
#include <folly/portability/SysUio.h>
#include <errno.h>
#include <stdio.h>
#include <cerrno>
#include <cstdio>
#include <folly/ScopeGuard.h>
#include <folly/portability/Sockets.h>
......
......@@ -19,7 +19,7 @@
#include <folly/CPortability.h>
#include <folly/Likely.h>
#include <assert.h>
#include <cassert>
#include <chrono>
......
......@@ -16,7 +16,7 @@
#include <folly/test/DeterministicSchedule.h>
#include <assert.h>
#include <cassert>
#include <algorithm>
#include <list>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment