From b2e366a3c5b897bc1230da92a76fd8d2be6d5c7e Mon Sep 17 00:00:00 2001
From: Laurent Vivier <Laurent@lvivier.info>
Date: Mon, 29 May 2006 19:50:37 +0000
Subject: [PATCH] Manage big endian/little endian

---
 libemile/emile_map_partition_is_valid.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libemile/emile_map_partition_is_valid.c b/libemile/emile_map_partition_is_valid.c
index 89da699..5b04b26 100644
--- a/libemile/emile_map_partition_is_valid.c
+++ b/libemile/emile_map_partition_is_valid.c
@@ -7,8 +7,9 @@ static __attribute__((used)) char* rcsid = "$CVSHeader$";
 
 #include "partition.h"
 #include "libemile.h"
+#include "emile.h"
 
 int emile_map_partition_is_valid(emile_map_t *map)
 {
-	return map->partition.Sig == MAP_SIGNATURE;
+	return read_short(&map->partition.Sig) == MAP_SIGNATURE;
 }