* Paolo Molaro (lupus@ximian.com)
*
* Copyright 2010 Novell, Inc (http://www.novell.com)
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#include "utils.h"
#include <stdlib.h>
return ptr;
#else
ptr = mmap (NULL, size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
- if (ptr == (void*)-1)
+ if (ptr == MAP_FAILED)
return NULL;
return ptr;
#endif