[Lldb-commits] [PATCH] D12748: Include platform agnostic <GetOptInc.h> in the place of <getopt.h>

Kamil Rytarowski via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 9 18:29:05 PDT 2015


krytarowski created this revision.
krytarowski added a reviewer: joerg.
krytarowski added a subscriber: lldb-commits.
krytarowski set the repository for this revision to rL LLVM.

Problem caught on NetBSD with missing getopt_long_only(3).

Repository:
  rL LLVM

http://reviews.llvm.org/D12748

Files:
  tools/lldb-server/lldb-gdbserver.cpp

Index: tools/lldb-server/lldb-gdbserver.cpp
===================================================================
--- tools/lldb-server/lldb-gdbserver.cpp
+++ tools/lldb-server/lldb-gdbserver.cpp
@@ -7,9 +7,10 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include <lldb/Host/common/GetOptInc.h>
+
 // C Includes
 #include <errno.h>
-#include <getopt.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12748.34399.patch
Type: text/x-patch
Size: 460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150910/bc129e01/attachment.bin>


More information about the lldb-commits mailing list