]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow building setmode.c on Linux/macOS
authorarichardson <arichardson@FreeBSD.org>
Mon, 3 Aug 2020 18:08:04 +0000 (18:08 +0000)
committerarichardson <arichardson@FreeBSD.org>
Mon, 3 Aug 2020 18:08:04 +0000 (18:08 +0000)
commitf2908d16c3d5a17c8a8fdbf0169869661018e68e
tree653d8f14ac7b343262521b9f988c04273771ffd4
parent9664ec9805973bb77ce6abaf85b16e83cf337550
Allow building setmode.c on Linux/macOS

We bootstrap this file to allow compiling FreeBSD on Linux systems since
some boostrap tools use setmode(). Unfortunately, glibc's sys/stat.h
declares a non-static getumask() function (which is unimplemented!) and
that conflicts with the local getumask() function. To work around this
simply use a different name here.

Reviewed By: brooks, emaste
Differential Revision: https://reviews.freebsd.org/D25929
lib/libc/gen/setmode.c