blob: c9771442c3bd72f43155d05ea9d91e1faa50a050 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- ./content/common/set_process_title_linux.cc.orig 2014-08-12 21:01:26.000000000 +0200
+++ ./content/common/set_process_title_linux.cc 2014-08-13 09:56:57.000000000 +0200
@@ -48,6 +48,8 @@
extern char** environ;
static char** g_main_argv = NULL;
+
+#if !defined(OS_FREEBSD)
static char* g_orig_argv0 = NULL;
void setproctitle(const char* fmt, ...) {
@@ -100,6 +102,7 @@
va_end(ap);
g_main_argv[1] = NULL;
}
+#endif
// A version of this built into glibc would not need this function, since
// it could stash the argv pointer in __libc_start_main(). But we need it.
|