Skip to content

Commit 945090d

Browse files
eli-schwartzgitster
authored andcommitted
meson: check for getpagesize before using it
It is deprecated and removed in SUS v3 / POSIX 2001, so various systems may not include it. Solaris, in particular, carefully refrains from defining it except inside of a maze of `#ifdef` to make sure you have kept your nose clean and only used it in code that *targets* SUS v2 or earlier. config.mak.uname defines this automatically, though only for QNX. Signed-off-by: Eli Schwartz <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 61fb226 commit 945090d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,8 @@ else
13041304
'mmap' : ['mmap.c'],
13051305
# provided by compat/mingw.c.
13061306
'unsetenv' : ['unsetenv.c'],
1307+
# provided by compat/mingw.c.
1308+
'getpagesize' : [],
13071309
}
13081310
endif
13091311

0 commit comments

Comments
 (0)