Skip to contentSkip to conversation

pseries: Remove unneeded include statement (fixes MinGW builds)

PATCH Applied Stefan Weil 3 participants 3 messages Dec 20, 2012 – Jan 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pseries: Remove unneeded include statement (fixes MinGW builds)

sys/mman.h is not needed (tested on Linux) and unavailable for MinGW, so remove it.

---
 hw/spapr_nvram.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/spapr_nvram.c +1 -1
index f20f6b4..680cdba 100644
@@ -21,7 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
-#include <sys/mman.h>
+
 #include <libfdt.h>
 
 #include "sysemu/device_tree.h"
Signature · 1 line
1.7.10.4
#2 lore raw
Quoted 11 lines · Stefan Hajnoczi
Quoted 7 lines · Stefan Weil

sys/mman.h is not needed (tested on Linux) and unavailable for MinGW, so remove it.

---
 hw/spapr_nvram.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I audited the code and cannot see anything that would require <sys/mman.h>.

Oh, yes, that would have been from an early draft that directly mmap()ed a backing file rather than using the block layer. It shouldn't be needed any more.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson