Fix logd's implicit dependency on libsysutils.
We're trying to remove the implicit dependency on libsysutils that *all* code has via the symlink in system/core/include/, but netd and logd have code that #includes the headers without declaring the dependency (which works out in the end because their executables declare the dependency). Bug: http://b/165825252 Test: treehugger Change-Id: I8c582e427d9dbe7d9f8172c445f38ae2737a9049
This commit is contained in:
parent
5d0eb66590
commit
0fe3b67024
6 changed files with 4 additions and 6 deletions
|
@ -25,7 +25,6 @@
|
|||
#include <android-base/thread_annotations.h>
|
||||
#include <android/log.h>
|
||||
#include <private/android_filesystem_config.h>
|
||||
#include <sysutils/SocketClient.h>
|
||||
|
||||
#include "LogBuffer.h"
|
||||
#include "LogBufferElement.h"
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
#include "LogReaderList.h"
|
||||
#include "LogReaderThread.h"
|
||||
|
||||
#define LOGD_SNDTIMEO 32
|
||||
|
||||
class LogReader : public SocketListener {
|
||||
public:
|
||||
explicit LogReader(LogBuffer* logbuf, LogReaderList* reader_list);
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <memory>
|
||||
|
||||
#include <log/log.h>
|
||||
#include <sysutils/SocketClient.h>
|
||||
|
||||
#include "LogBuffer.h"
|
||||
#include "LogWriter.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/uio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <string>
|
||||
|
|
|
@ -20,12 +20,13 @@
|
|||
#include <sys/types.h>
|
||||
|
||||
#include <private/android_logger.h>
|
||||
#include <sysutils/SocketClient.h>
|
||||
#include <utils/FastStrcmp.h>
|
||||
|
||||
// Hijack this header as a common include file used by most all sources
|
||||
// to report some utilities defined here and there.
|
||||
|
||||
#define LOGD_SNDTIMEO 32
|
||||
|
||||
namespace android {
|
||||
|
||||
// Furnished in main.cpp. Caller must own and free returned value
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include <selinux/selinux.h>
|
||||
#endif
|
||||
|
||||
#include "LogReader.h" // pickup LOGD_SNDTIMEO
|
||||
#include "LogUtils.h" // For LOGD_SNDTIMEO.
|
||||
|
||||
using android::base::unique_fd;
|
||||
|
||||
|
|
Loading…
Reference in a new issue