aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-content_common_set__process__title__linux.cc
blob: f9839285a1e31c4f647c0f3a98c196dad9bef04f (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	2016-03-25 13:04:48 UTC
+++ content/common/set_process_title_linux.cc
@@ -49,6 +49,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, ...) {
@@ -101,6 +103,7 @@ void setproctitle(const char* fmt, ...) 
   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.