]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix macro warning on HAVE_PT_CHOWN
authorAndreas Schwab <schwab@suse.de>
Tue, 13 May 2014 15:04:27 +0000 (17:04 +0200)
committerAndreas Schwab <schwab@suse.de>
Wed, 14 May 2014 07:46:54 +0000 (09:46 +0200)
ChangeLog
config.h.in
sysdeps/unix/grantpt.c

index e66dafc40decca528a1e89a6ab2c7e4ba87ca9ea..7d9a8b7eaf6b0d595818d109ed528b1051da142b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index b6e3623d92f58629e91347307265c90f56ea8114..a9ff1e3ac17d03ae1a7bdd9b275281fc42d74f52 100644 (file)
 #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.  */
index 410dc50cf9411678d82fcc958258011b85c0d6b7..2cb277cc009f0ba6b78a4ab283264840f18aad3d 100644 (file)
@@ -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;