mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
Fix macro warning on HAVE_PT_CHOWN
This commit is contained in:
parent
5e7698c6f1
commit
73ba67cbc3
@ -1,3 +1,9 @@
|
||||
2014-05-14 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* config.h.in (HAVE_PT_CHOWN): Define as 0.
|
||||
* sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
|
||||
not definedness.
|
||||
|
||||
2014-05-14 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
|
||||
|
@ -251,7 +251,7 @@
|
||||
#undef HAVE_ARM_PCS_VFP
|
||||
|
||||
/* The pt_chown binary is being built and used by grantpt. */
|
||||
#undef HAVE_PT_CHOWN
|
||||
#define HAVE_PT_CHOWN 0
|
||||
|
||||
/* ports/sysdeps/mips/configure.in */
|
||||
/* Define if using the IEEE 754-2008 NaN encoding on the MIPS target. */
|
||||
|
@ -176,7 +176,7 @@ grantpt (int fd)
|
||||
/* We have to use the helper program if it is available. */
|
||||
helper:;
|
||||
|
||||
#ifdef HAVE_PT_CHOWN
|
||||
#if HAVE_PT_CHOWN
|
||||
pid_t pid = __fork ();
|
||||
if (pid == -1)
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user