projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2008-06-13 Mark Probst <mark.probst@gmail.com>
[mono.git]
/
mono
/
metadata
/
rawbuffer.c
diff --git
a/mono/metadata/rawbuffer.c
b/mono/metadata/rawbuffer.c
index 4475c1271a3b26160fb401c9d7385062273de307..167d9b8391d9480767114e007cb819af3cf03467 100644
(file)
--- a/
mono/metadata/rawbuffer.c
+++ b/
mono/metadata/rawbuffer.c
@@
-11,7
+11,9
@@
#define USE_WIN32_API 1
#endif
#define USE_WIN32_API 1
#endif
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
+#endif
#include <errno.h>
#ifdef USE_WIN32_API
#include <winsock2.h>
#include <errno.h>
#ifdef USE_WIN32_API
#include <winsock2.h>
@@
-167,9
+169,7
@@
mono_raw_buffer_load_mmap (int fd, int is_writable, guint32 base, size_t size)
* http://bugzilla.ximian.com/show_bug.cgi?id=49499
* for more info.
*/
* http://bugzilla.ximian.com/show_bug.cgi?id=49499
* for more info.
*/
- if (mprotect (ptr, end - start, prot | PROT_EXEC) != 0)
- g_warning (G_GNUC_PRETTY_FUNCTION
- ": mprotect failed: %s", g_strerror (errno));
+ mprotect (ptr, end - start, prot | PROT_EXEC);
if (make_unreadable) {
int res = mprotect (ptr, end - start, 0);
if (make_unreadable) {
int res = mprotect (ptr, end - start, 0);