arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

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

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