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)
 {

_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to