diff mbox

[xf86-video-intel] sna: Fix compilation with older GCC

Message ID 1375616290-30024-1-git-send-email-mark.kettenis@xs4all.nl (mailing list archive)
State New, archived
Headers show

Commit Message

Mark Kettenis Aug. 4, 2013, 11:38 a.m. UTC
From: Mark Kettenis <kettenis@openbsd.org>

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
---
 src/sna/compiler.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Chris Wilson Aug. 4, 2013, 11:52 a.m. UTC | #1
On Sun, Aug 04, 2013 at 01:38:10PM +0200, Mark Kettenis wrote:
> From: Mark Kettenis <kettenis@openbsd.org>

I just wrote that patch as well. :(
-Chris
Mark Kettenis Aug. 4, 2013, 11:58 a.m. UTC | #2
> Date: Sun, 4 Aug 2013 12:52:18 +0100
> From: Chris Wilson <chris@chris-wilson.co.uk>
> 
> On Sun, Aug 04, 2013 at 01:38:10PM +0200, Mark Kettenis wrote:
> > From: Mark Kettenis <kettenis@openbsd.org>
> 
> I just wrote that patch as well. :(

Must be right then!

Cheers,

Mark
diff mbox

Patch

diff --git a/src/sna/compiler.h b/src/sna/compiler.h
index 2f5dfc7..28d3351 100644
--- a/src/sna/compiler.h
+++ b/src/sna/compiler.h
@@ -67,6 +67,8 @@ 
 
 #if HAS_GCC(4, 6) && defined(__OPTIMIZE__)
 #define fast __attribute__((optimize("Ofast")))
+#else
+#define fast
 #endif
 
 #if HAS_GCC(4, 6) && defined(__OPTIMIZE__)