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:
Darryl L. Miles 2025-07-14 13:59:00 +01:00 committed by R. Timothy Edwards
parent f8ef715608
commit 489f4fe057
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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;