OSDN Git Service

fix anonymous memory mapping for NetBSD
authorGrant Carver <grantc@cat.co.za>
Thu, 19 Aug 2010 23:48:19 +0000 (23:48 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Thu, 19 Aug 2010 23:48:19 +0000 (23:48 +0000)
commit53bc0dc2bdc1566156331ebe1c1d7bf0e0879c1f
treed8a8d193af439e5affd8031be7b536c724d7c723
parent364cacc7c7767f5ce147b4af5116fd5c427b0d5a
fix anonymous memory mapping for NetBSD

mmap() with MAP_ANONYMOUS requires the file descriptor to be -1 in NetBSD.
Linux just ignores this parameter.

Patch by Grant Carver <grantc at cat dot co dot za>

Originally committed as revision 31984 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/utils.c