Skip to content

Instantly share code, notes, and snippets.

@mvarie
mvarie / changed.diff
Created September 8, 2020 00:03 — forked from kapejod/changed.diff
How i have built WebRTC for tvOs (some time ago....might not apply anymore)
diff --git a/webrtc/base/posix.cc b/webrtc/base/posix.cc
index 0eb24ee..7e48273 100644
--- a/webrtc/base/posix.cc
+++ b/webrtc/base/posix.cc
@@ -44,7 +44,7 @@ enum {
bool RunAsDaemon(const char *file, const char *const argv[]) {
// Fork intermediate child to daemonize.
- pid_t pid = fork();
+ pid_t pid = -1;
/* Implementation of HTML Timers (setInterval/setTimeout) based on sleep.
*
* This file is provided under the following terms (MIT License):
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*