[Lldb-commits] [lldb] r248990 - Include platform agnostic <HostGetOpt.h> in the place of <getopt.h>

Bruce Mitchener via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 1 00:45:58 PDT 2015


Author: brucem
Date: Thu Oct  1 02:45:58 2015
New Revision: 248990

URL: http://llvm.org/viewvc/llvm-project?rev=248990&view=rev
Log:
Include platform agnostic <HostGetOpt.h> in the place of <getopt.h>

Summary: Problem caught on NetBSD with missing getopt_long_only(3).

Change by Kamil Rytarowski <n54 at gmx.com>

Reviewers: joerg, brucem

Subscribers: brucem, lldb-commits

Differential Revision: http://reviews.llvm.org/D12748

Modified:
    lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp

Modified: lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp?rev=248990&r1=248989&r2=248990&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp (original)
+++ lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp Thu Oct  1 02:45:58 2015
@@ -9,7 +9,6 @@
 
 // C Includes
 #include <errno.h>
-#include <getopt.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -29,6 +28,7 @@
 #include "lldb/Core/Error.h"
 #include "lldb/Core/PluginManager.h"
 #include "lldb/Host/ConnectionFileDescriptor.h"
+#include "lldb/Host/HostGetOpt.h"
 #include "lldb/Host/HostThread.h"
 #include "lldb/Host/OptionParser.h"
 #include "lldb/Host/Pipe.h"




More information about the lldb-commits mailing list