diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-10-05 08:25:23 +0300 |
---|---|---|
committer | Arun Sharma <asharma@fb.com> | 2012-10-05 21:24:30 -0700 |
commit | 96c1bca2b08f147011814b1b7be6863151ef0be9 (patch) | |
tree | 8662dd09d4e17f831e3b8d1f1ac6c323ef656838 | |
parent | cb3fbbb1729254e9a49e3f8fbe1cadbd519ece52 (diff) | |
download | libunwind-96c1bca2b08f147011814b1b7be6863151ef0be9.tar.gz |
Fix header inclusion order in `src/elfxx.c'
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.
-rw-r--r-- | src/elfxx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elfxx.c b/src/elfxx.c index 60601694..3d873317 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) { |