Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Apr 2011 00:01:33 +0300
From:      Andriy Gapon <avg@freebsd.org>
To:        chromium@freebsd.org
Subject:   small patch for compilation with gcc45
Message-ID:  <4D963D2D.4060304@freebsd.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------050800020807010306050306
Content-Type: text/plain; charset=X-VIET-VPS
Content-Transfer-Encoding: 7bit


Thanks a lot for your work on chromium!
chromium-10.0.648.204 looks and works great here on recent amd64 CURRENT system.
I compiled chromium with gcc45 and I had to apply only the attached tiny change
to fix the compilation.  It must be that on Linux FILE definition becomes
visible though some other header file without explicit stdio.h inclusion.

-- 
Andriy Gapon

--------------050800020807010306050306
Content-Type: text/plain;
 name="chromium-gcc45.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="chromium-gcc45.patch"

--- base/shared_memory.h.orig	2011-04-01 21:54:26.066717848 +0300
+++ base/shared_memory.h	2011-04-01 21:55:14.292717813 +0300
@@ -10,6 +10,7 @@
 
 #if defined(OS_POSIX)
 #include <sys/types.h>
+#include <stdio.h>
 #include <semaphore.h>
 #include "base/file_descriptor_posix.h"
 #endif
--- third_party/libjingle/source/talk/base/stream.h.orig	2011-04-01 22:16:30.129717654 +0300
+++ third_party/libjingle/source/talk/base/stream.h	2011-04-01 22:16:48.245715495 +0300
@@ -28,6 +28,7 @@
 #ifndef TALK_BASE_STREAM_H__
 #define TALK_BASE_STREAM_H__
 
+#include <stdio.h>
 #include "talk/base/basictypes.h"
 #include "talk/base/criticalsection.h"
 #include "talk/base/logging.h"
--- base/debug/trace_event.h.orig	2011-04-01 22:22:50.326752296 +0300
+++ base/debug/trace_event.h	2011-04-01 22:23:12.004715315 +0300
@@ -29,6 +29,7 @@
 #include "base/debug/trace_event_win.h"
 #else  // defined(OS_WIN)
 
+#include <stdio.h>
 #include <string>
 
 #include "base/scoped_ptr.h"

--------------050800020807010306050306--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D963D2D.4060304>