tile.h: move #include <sys/mman.h> into tile.c
tile.h is included by a large part of the project, but the definitions in sys/mman.h are only needed by the implementation code inside tile.c so this reduces project wide include dependencies.
This commit is contained in:
parent
f8ef715608
commit
489f4fe057
|
|
@ -23,6 +23,9 @@ static const char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magi
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_SYS_MMAN_H
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#include "utils/magic.h"
|
||||
#include "utils/malloc.h"
|
||||
|
|
|
|||
|
|
@ -76,8 +76,6 @@ typedef struct tile
|
|||
*/
|
||||
|
||||
#ifdef HAVE_SYS_MMAN_H
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* This is an on-demand Free List management */
|
||||
typedef Tile *TileStore;
|
||||
|
|
|
|||
Loading…
Reference in New Issue