Blame SOURCES/glibc-rh1505492-undef-22.patch

25845f
commit 73ba67cbc3941c3bcfda31a22a9d0d97ac928f3b
25845f
Author: Andreas Schwab <schwab@suse.de>
25845f
Date:   Tue May 13 17:04:27 2014 +0200
25845f
25845f
    Fix macro warning on HAVE_PT_CHOWN
25845f
25845f
diff --git a/config.h.in b/config.h.in
25845f
index ef33c23c75ad2220..820ada7bb209b6f1 100644
25845f
--- a/config.h.in
25845f
+++ b/config.h.in
25845f
@@ -258,6 +258,6 @@
25845f
 #undef HAVE_ARM_PCS_VFP
25845f
 
25845f
 /* The pt_chown binary is being built and used by grantpt.  */
25845f
-#undef HAVE_PT_CHOWN
25845f
+#define HAVE_PT_CHOWN 0
25845f
 
25845f
 #endif
25845f
diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c
25845f
index 66ff3d9f41ae50a7..b7fb61ada3c789c4 100644
25845f
--- a/sysdeps/unix/grantpt.c
25845f
+++ b/sysdeps/unix/grantpt.c
25845f
@@ -176,7 +176,7 @@ grantpt (int fd)
25845f
   /* We have to use the helper program if it is available.  */
25845f
  helper:;
25845f
 
25845f
-#ifdef HAVE_PT_CHOWN
25845f
+#if HAVE_PT_CHOWN
25845f
   pid_t pid = __fork ();
25845f
   if (pid == -1)
25845f
     goto cleanup;