[Lldb-commits] [lldb] 08f4b56 - [lldb] Include unistd.h for sleep in profile_vrs_detach

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 21 17:32:19 PDT 2021


Author: Jonas Devlieghere
Date: 2021-10-21T17:32:15-07:00
New Revision: 08f4b56fb9795b5d271378fb62c3fed67ab1b754

URL: https://github.com/llvm/llvm-project/commit/08f4b56fb9795b5d271378fb62c3fed67ab1b754
DIFF: https://github.com/llvm/llvm-project/commit/08f4b56fb9795b5d271378fb62c3fed67ab1b754.diff

LOG: [lldb] Include unistd.h for sleep in profile_vrs_detach

Added: 
    

Modified: 
    lldb/test/API/macosx/profile_vrs_detach/main.c

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/macosx/profile_vrs_detach/main.c b/lldb/test/API/macosx/profile_vrs_detach/main.c
index 6bcd3342441b..939308414edc 100644
--- a/lldb/test/API/macosx/profile_vrs_detach/main.c
+++ b/lldb/test/API/macosx/profile_vrs_detach/main.c
@@ -1,10 +1,11 @@
 #include <stdio.h>
+#include <unistd.h>
 
 int
 main()
 {
   while (1) {
-    sleep(1); // Set a breakpoint here 
+    sleep(1); // Set a breakpoint here
     printf("I slept\n");
   }
   return 0;


        


More information about the lldb-commits mailing list