[blob] Fix build when HAVE_MMAP is not defined
This commit is contained in:
parent
a2ce96881b
commit
b169a52c1e
|
@ -35,10 +35,6 @@
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif /* HAVE_SYS_MMAN_H */
|
#endif /* HAVE_SYS_MMAN_H */
|
||||||
|
|
||||||
#if !defined(HB_NO_RESOURCE_FORK) && defined(__APPLE__)
|
|
||||||
#include <sys/paths.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -480,6 +476,9 @@ hb_blob_t::try_make_writable ()
|
||||||
|
|
||||||
#ifndef HB_NO_OPEN
|
#ifndef HB_NO_OPEN
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
|
# if !defined(HB_NO_RESOURCE_FORK) && defined(__APPLE__)
|
||||||
|
# include <sys/paths.h>
|
||||||
|
# endif
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
# include <sys/stat.h>
|
# include <sys/stat.h>
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
|
|
Loading…
Reference in New Issue