]> git.proxmox.com Git - qemu.git/blobdiff - darwin-user/mmap.c
Merge branch 'stable-0.15' of git://git.qemu.org/qemu
[qemu.git] / darwin-user / mmap.c
index f803066aa4438642842e857981376754bd0cd9ed..d840b28d383f6d7d308a23b44b0832443d6b7c27 100644 (file)
@@ -14,9 +14,7 @@
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
- *  MA 02110-1301, USA.
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include <stdlib.h>
 #include <stdio.h>
@@ -131,7 +129,7 @@ int mmap_frag(unsigned long host_start,
         if ((flags &  MAP_SHARED) &&
 #endif
             (prot & PROT_WRITE))
-            return -EINVAL;
+            return -1;
 
         /* adjust protection to be able to read */
         if (!(prot1 & PROT_WRITE))