Mercurial > mplayer.hg
comparison osdep/mmap_anon.c @ 21855:936209c39ed1
Move #ifdef directives around complete files into the build system.
author | diego |
---|---|
date | Wed, 10 Jan 2007 19:07:42 +0000 |
parents | 969de5b130ae |
children | 10f268ec0d87 |
comparison
equal
deleted
inserted
replaced
21854:752d1c70aa67 | 21855:936209c39ed1 |
---|---|
1 /** | 1 /** |
2 * \file mmap_anon.c | 2 * \file mmap_anon.c |
3 * \brief Provide a compatible anonymous space mapping function | 3 * \brief Provide a compatible anonymous space mapping function |
4 */ | 4 */ |
5 #include "config.h" | 5 #include "config.h" |
6 #ifdef HAVE_SYS_MMAN_H | |
7 | 6 |
8 #include <stdio.h> | 7 #include <stdio.h> |
9 #include <unistd.h> | 8 #include <unistd.h> |
10 #include <fcntl.h> | 9 #include <fcntl.h> |
11 #include <sys/mman.h> | 10 #include <sys/mman.h> |
61 close(fd); | 60 close(fd); |
62 #endif /* MAP_ANONYMOUS */ | 61 #endif /* MAP_ANONYMOUS */ |
63 | 62 |
64 return result; | 63 return result; |
65 } | 64 } |
66 | |
67 #endif /* HAVE_SYS_MMAN_H */ |