From b3af1e9b34f23736eeeeb5d6a218851da513dba1 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Mon, 13 Oct 2014 18:59:39 +0200
Subject: Fix gcc2 compatibility.


diff --git a/libudis86/types.h b/libudis86/types.h
index 8b012a9..9f60041 100644
--- a/libudis86/types.h
+++ b/libudis86/types.h
@@ -47,7 +47,7 @@
 #endif /* !__UD_STANDALONE__ */
 
 /* gcc specific extensions */
-#ifdef __GNUC__
+#if defined(__GNUC__) && __GNUC__ > 2
 # define UD_ATTR_PACKED __attribute__((packed))
 #else
 # define UD_ATTR_PACKED
-- 
1.8.3.4

