mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
include: Adjust closefrom() per glibc adoption
Added in glibc 2.34 https://sourceware.org/git/?p=glibc.git;a=commit;h=607449506f197cc9514408908f41f22537a47a8c Signed-off-by: Guillem Jover <guillem@hadrons.org>
This commit is contained in:
parent
0dfbe7699e
commit
7b4ebd6521
@ -59,7 +59,11 @@ int bsd_getopt(int argc, char * const argv[], const char *shortopts);
|
||||
mode_t getmode(const void *set, mode_t mode);
|
||||
void *setmode(const char *mode_str);
|
||||
|
||||
#if !defined(__GLIBC__) || \
|
||||
!__GLIBC_PREREQ(2, 34) || \
|
||||
!defined(_DEFAULT_SOURCE)
|
||||
void closefrom(int lowfd);
|
||||
#endif
|
||||
|
||||
/* Compatibility with sendmail implementations. */
|
||||
#define initsetproctitle(c, a, e) setproctitle_init((c), (a), (e))
|
||||
|
Loading…
Reference in New Issue
Block a user