libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH] Fix header inclusion order in `src/elfxx.c'


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH] Fix header inclusion order in `src/elfxx.c'
Date: Fri, 5 Oct 2012 08:25:23 +0300

Make sure that we have included `config.h' before checking HAVE_LZMA.
This makes a difference at least on MIPS, where we include `elfxx.c'
directly. For other platforms this does not make much difference, as we
are already indirectly including `config.h' from other headers.

diff --git a/src/elfxx.c b/src/elfxx.c
index 6060169..3d87331 100644
--- a/src/elfxx.c
+++ b/src/elfxx.c
@@ -24,6 +24,8 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 
AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
+#include "libunwind_i.h"
+
 #include <stdio.h>
 #include <sys/param.h>
 
@@ -31,8 +33,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.  */
 #include <lzma.h>
 #endif /* HAVE_LZMA */
 
-#include "libunwind_i.h"
-
 static Elf_W (Shdr)*
 elf_w (section_table) (struct elf_image *ei)
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]