Fix build on Linux

- add a workaround header to define uuid_t on platforms that need it
- unbreak remote debugging of mac os x apps

llvm-svn: 179710
This commit is contained in:
Daniel Malea 2013-04-17 19:24:22 +00:00
parent 111c4a6b69
commit ffeb4b605a
3 changed files with 26 additions and 0 deletions

View File

@ -38,6 +38,10 @@
#define DEBUG_PRINTF(fmt, ...)
#endif
#ifndef __APPLE__
#include "Utility/UuidCompatibility.h"
#endif
using namespace lldb;
using namespace lldb_private;

View File

@ -43,6 +43,10 @@
#include <dlfcn.h>
#endif
#ifndef __APPLE__
#include "Utility/UuidCompatibility.h"
#endif
using namespace lldb;
using namespace lldb_private;
using namespace llvm::MachO;

View File

@ -0,0 +1,18 @@
//===-- UuidCompatibility.h -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// Include this header if your system does not have a definition of uuid_t
#ifndef utility_UUID_COMPATIBILITY_H
#define utility_UUID_COMPATIBILITY_H
// uuid_t is guaranteed to always be a 16-byte array
typedef unsigned char uuid_t[16];
#endif // utility_UUID_COMPATIBILITY_H