blob: da98b7fb7d286dec7d2c68af7ae14347eeedc87a (
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-20 21:02:50.000000000 +0200
+++ ./content/common/set_process_title_linux.cc 2014-08-22 15:06:25.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.
|